繁体   English   中英

React Native Android构建失败无一例外

[英]React Native android build fails without an exception

我正在尝试在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上运行,并尝试在adb devices列表上的Samsung Galaxy S6上部署该应用程序。 还尝试将ANDROID_HOME变量设置为我的.bash_profile并更新构建工具,但这些操作无济于事。

如果有人可以帮助我解决这一问题,我将感到非常高兴。

将gradle版本更改为1.2.3。

File android/build.gradle
modify this line: classpath 'com.android.tools.build:gradle:1.2.3'

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM