Skip to content
Advertisement

Error with react-native run-android after upgrade to react-native version 0.60.4

I am upgrading react-native from 0.59.5 to 0.60.4 with my existing application. But facing a problem as below

JavaScript

And my build.gradle is

JavaScript

I have absolutely no clue what this error is about and could not find much helpful articles. Please help me out.

Advertisement

Answer

Looks like Gradle is currently erroring on builds using openJDK-13.

Here’s a Github issue thread.

Check the version of Java and JDK versions on your system by running the following command on in your terminal:

JavaScript

OR

JavaScript

This will list the current installations on your system. If you see openjdk-13 anywhere, you’ll have to downgrade to openjdk-8.

Check this link for downgrading steps.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement