Android Studio 3.1 Canary 3 - Gradle sync failed

2020-02-05 06:05发布

For a unknown reason Android Studio 3.1 Canary 3 is bugged and stopped to work, I updated gradle to 3.1-alpha03 and it stopped working, no matter if I download the project again, already downloaded Android Studio again too.

I've already checkout old versions of the project, but this message still show:

Gradle sync failed: com.android.tools.idea.gradle.project.model.AndroidModuleModel.getSelectedVariant()Lcom/android/tools/idea/gradle/project/model/ide/android/IdeVariant; (8s 806ms)

I've removed .idea folder, .gradle folder, did invalidate and restart

I don't know nothing more to do, cant run or use the IDE.


Edit:

Image


Edit2:

New Projects doesnt work too

8条回答
男人必须洒脱
2楼-- · 2020-02-05 06:47

roll back to the previous gradle version i have faced such issues myself and stay away from RC gradle version unless really needed.

查看更多
兄弟一词,经得起流年.
3楼-- · 2020-02-05 06:50

on Windows i just remove from C:\Users\ folder -

.AndroidStudioPreview3.1

and all cache folders in .android ,.gradle too

and problem is gone)

查看更多
登录 后发表回答