Does Android studio need internet connection to build project

前端 未结 5 840
逝去的感伤
逝去的感伤 2020-12-02 14:56

I am using Android studio version 0.4.2 and gradle version 1.9. I have successfully installed Studio and have created multiple projects. Today when I launched Studio

5条回答
  •  [愿得一人]
    2020-12-02 15:27

    You can download the gradle distribution locally and build the project again.

    To do this, edit your gradle-wrapper.properties under gradle-> wrapper in your Android project.

    Edit the

    distributionUrl=https://services.gradle.org/distributions/gradle-2.2.1-all.zip

    to

    distributionUrl=file:///home/foo/downloads/gradle-2.2.1-all.zip

    So just download the file from here as mentioned in your gradle-wrapper.properties.

提交回复
热议问题