本文介绍了Android Studio 3.1与Gradle同步失败:向后分支70上存在未初始化的对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
将Android Studio从3.0更新到3.1后,我的项目gradle同步失败,并出现以下错误.
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;
推荐答案
@tech_android已发布在,要永久解决该问题,请转到模块设置>
SDK位置>
使用嵌入式JDK.
As @tech_android already posted in this comment, to solve that problem permanently, go to Module Settings >
SDK Location >
Use embedded JDK.
这将通过使用嵌入式JDK消除对外部Java安装的依赖.
This will remove dependency on the external Java installation by using the embedded JDK.
这篇关于Android Studio 3.1与Gradle同步失败:向后分支70上存在未初始化的对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!