First React Native App: Task :app:processDebugMainManifest FAILED

What worked for me on JDK 17, and should for JDK 16 too:

Append the following line to the ./android/gradle.properties file in your project:

org.gradle.jvmargs=--add-opens java.base/java.io=ALL-UNNAMED

You may need to stop existing Gradle instances if some are already running, the easiest way would be to restart your OS.

That’s it!

I haven’t encountered any other issues using JDK 17 with React Native so far

Leave a Comment