I have react native version 0.42.0. My project was working fine with this.
Recently I upgraded to react-native version 0.43.1. and now when I do
react-native run-android
I am stuck with the error.
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
I have followed the instruction for upgrading from https://facebook.github.io/react-native/docs/upgrading.html
I googled the issue. Gone through the following links none of it worked for me.
Could not find or load main class org.gradle.wrapper.GradleWrapperMain
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
any kind of help/guidance will be helpfull for me.