che*_*tan 13 android-gradle-plugin react-native react-native-android
我已经反应原生版本0.42.0.我的项目工作正常.
最近我升级到react-native版本0.43.1.而现在,当我这样做
react-native run-android
Run Code Online (Sandbox Code Playgroud)
我遇到了错误.
JS server already running.
Building and installing the app on the device (cd android && ./gradlew installDebug)...
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
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
Run Code Online (Sandbox Code Playgroud)
我已按照https://facebook.github.io/react-native/docs/upgrading.html的升级说明进行操作
我用谷歌搜索了这个问题.通过以下链接,没有一个对我有用.
任何形式的帮助/指导对我都有帮助.
小智 10
请检查您的gradle这个-wrapper.jar从gradle/wrapper文件夹中.
我得到了和你一样的错误,我用完整的一个改变了jar.
我还在gradle-wrapper.properties文件中更改了一行*distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip,gradle将自行下载.
react-native upgrade
Run Code Online (Sandbox Code Playgroud)
运行此命令可能会解决您的问题.就我而言,确实如此.但请确保备份Android和iOS文件夹,以防您进行修改.
| 归档时间: |
|
| 查看次数: |
44324 次 |
| 最近记录: |