Gradle gets stuck at either 'build' or 'assembleDebug' when using the 64bit or 32bit version of Android Studio

前端 未结 7 1671
夕颜
夕颜 2021-01-04 06:33

The issue I\'ve had over the past few months is that Android Studio would often get stuck on Gradle: build, as seen here. Android Studio itself would stay respo

7条回答
  •  忘掉有多难
    2021-01-04 07:00

    Because there is no answer to this problem I will share, what I have done, to solve this issue. From what I have seen, the problem is that there is a dependancy(or many) from a maven repo that can not be loaded. So you have to take all dependacy one by one and check if exist on the maven repo.

    For example I was having a dependancy for "org.jraf:android-switch-backport:1.3.1" from "http://JRAF.org/static/maven/2" that at that time could not be opened.

    My build.gradle looked like this:

      repositories {
          mavenCentral()
          maven {
            url "http://JRAF.org/static/maven/2"
          }
      }
    
      compile "org.jraf:android-switch-backport:1.3.1
    

提交回复
热议问题