Silvio Monnerat
Silvio Monnerat

Reputation: 1

Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain MacOS

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

enter image description here

Upvotes: 0

Views: 404

Answers (1)

MoKhajavi75
MoKhajavi75

Reputation: 2702

  1. install the react-native-cli again via:

npm i -g react-native-cli or yarn global add react-native-cli

  1. Recreate the project and build via:

react-native init NAME

Upvotes: 0

Related Questions