Android studio, configure gradle project takes forever

前端 未结 9 2259
滥情空心
滥情空心 2020-12-14 01:06

After changing the gradle build file to use gradle build tool 0.8.+,

classpath \'com.android.tools.build:gradle:0.8.+\'

my Android studio

9条回答
  •  隐瞒了意图╮
    2020-12-14 01:39

    If you are on Windows check

    C:\Users\YOUR_USER\.gradle\wrapper\dists
    

    whether the gradle 1.10-all is installed there or not inside the directory.

    Android Studio downloads the whole distribution first time which is around 60 MB so it takes some time.

    Check the distributionUrl in gradle/gradle-wrapper.properties and match the same in your dist directory if it is not available studio will download it. Distribution url will look like :

    distributionUrl=http\://services.gradle.org/distributions/gradle-1.10-all.zip
    

    change it to whatever already installed will solve the problem.

    Note : The directory name in dist and Zip name must same. Directory will be created while trying to download check whether the Zip is installed properly or not.

提交回复
热议问题