I want to build this project with Android Studio at launching, but take a error. Stacktrace is here
If the Problem Persists, just import the gradle to Android Studio and build the file inside the Android Studio.
Android Studio automatically handles gradle and sdk problems.
After successful build you can also try running the app via react-native run-android
in the
Command Prompt. Hope this Helps.
This was the only fix that fixed this issue.
I tried all the above answers but problem persisted
Changing the JDK in Android Studio to point back at 8 didn't work for me. I uninstalled Java 9 and this solved the issue.
I had the same problem. I had installed Java 8 and Java 9.
I set JAVA_HOME
to Java 8, but Gradle was using Java 9.
I changed the JDK in File->Project Structure to Java 8 and it worked.