我使用的是React Native 0.42.0版本,之前我的项目在这个版本上运行得很好。
最近我升级到了React Native 0.43.1版本。现在当我执行
react-native run-android
我卡在了这个错误上。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
我已按照https://facebook.github.io/react-native/docs/upgrading.html的说明进行了升级。
我在Google上搜索了这个问题。查看了以下链接,但都没有解决我的问题:
Could not find or load main class org.gradle.wrapper.GradleWrapperMain
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
任何形式的帮助/指导都将对我有所帮助。