【发布时间】:2016-08-15 05:36:54
【问题描述】:
我正在尝试在 Android 上运行一个非常简单的 React Native 应用程序,但构建一直失败。构建没有给出任何错误,run-ios 工作正常。
$ react-native run-android
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
我在 OSX 上运行并尝试在三星 Galaxy S6 上部署该应用程序,该应用程序位于 adb devices 列表中。还尝试将 ANDROID_HOME 变量设置为我的 .bash_profile 并更新构建工具,但这些都没有帮助。
如果有人能帮我解决这个问题,我会很高兴。
【问题讨论】:
标签: android android-gradle-plugin react-native