After Updating Android Studio from 3.0 to 3.1 My project gradle syncing failed with the following error.
Gradle sync failed: Uninitialized object exists on backward branch 70 Exception Details: Location:
com/android/build/gradle/tasks/BuildArtifactReportTask.newArtifact(Lcom/android/build/api/artifact/BuildableArtifact;)
Lcom/android/build/gradle/tasks/BuildArtifactReportTask$BuildableArtifactData;
As @tech_android already posted in this comment, to solve that problem permanently, go to Module Settings >
SDK Location >
Use embedded JDK.
This will remove dependency on the external Java installation by using the embedded JDK.
This is a bug of JDK old versions i guess. Go to the project structure and change your project to latest JDK like 1.80_72 or later versions.
Hopefully it will fix your problem.
It's resolved my issue when I used embedded JDK(recommended) option
Do this:
Project Structure -> SDK Location -> Select "Use embedded JDK(recommended)"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With