react-native run-android命令失败,但是gradlew installDebug工
发布时间:2020-12-15 05:06:00 所属栏目:百科 来源:网络整理
导读:我在OSX上使用react-native 0.43.3. 我试图在 Android上运行应用程序并获取消息 react-native run-androidScanning 568 folders for symlinks in /Users/ruci.k/project/mayacrew/supermembers/supermembers/node_modules (5ms)JS server already running.Bu
我在OSX上使用react-native 0.43.3.
我试图在 Android上运行应用程序并获取消息 react-native run-android Scanning 568 folders for symlinks in /Users/ruci.k/project/mayacrew/supermembers/supermembers/node_modules (5ms) JS server already running. Building and installing the app on the device (cd android && ./gradlew installDebug)... Could not install the app on the device,read the error above for details. Make sure you have an Android emulator running or a device connected and have set up your Android development environment: https://facebook.github.io/react-native/docs/android-setup.html ./gradlew installDebug给了我一些错误并修复了一切. 但react-native run-android命令仍无效. 有什么可以检查使用react-native run-android命令吗? 我无法理解它是怎么发生的.
尝试删除android,ios文件夹,然后做反应原生升级,然后再次尝试react-native run-android之后,如果你得到一个错误,如
然后在该文件夹中创建一个名为local.properties的文件
并插入以下行sdk.dir = / path / to / Android / Sdk之后一切都应该没问题 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |