【发布时间】:2017-09-25 20:05:07
【问题描述】:
我在 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 给了我一些错误并修复了它。 最后构建成功,应用程序在 Android 设备上运行。
但是react-native run-android 命令仍然不起作用。
只有./gradlew installDebug 命令有效。
我可以检查什么以使用react-native run-android 命令吗?
我不明白这是怎么发生的。
【问题讨论】:
标签: android react-native