Android Studio stuck on “Gradle: resolve dependencies '_debugCompile'” or 'detachedConfiguration1'

后端 未结 10 822
萌比男神i
萌比男神i 2020-11-27 04:20

I have no idea what I changed in my project, but it suddenly cannot get past this step while building gradle scripts.

There is no problem building it with j

10条回答
  •  遥遥无期
    2020-11-27 05:25

    Please run gradle from command line (opening a terminal in your project folder) using -info and check where it stop. I was experiencing something similar and it was related with jcenter(), because it can't reach a resource:

    Resource missing. HTTP GET

    so, changing jcenter() by mavenCentral() in MyProject/build.gradle did the trick.

    I hope it can help.

提交回复
热议问题