Android studio - Failed to complete gradle execution - error in opening zip file

后端 未结 15 2271
伪装坚强ぢ
伪装坚强ぢ 2020-11-29 04:21

I\'m new to android development and android studio IDE.

I\'ve checked-out a project from bitbucket and when I try to compile it I get the following error:

15条回答
  •  情书的邮戳
    2020-11-29 04:30

    If you have limited internet plan then use the following method.

    Step1: Close android studio

    Step2: Go to C:\Users\Khurshid\.gradle\wrapper\dists\gradle-1.12-all\2apkk7d25miauqf1pdjp1bm0uo (if you want to configure gradle 1.12)

    Step3: try to open the gradle-1.12-all.zip by double clicking it. If it gives error message then delete the zip file.

    step4: go to https://services.gradle.org/distributions and download gradle-1.12-all.zip (54mb approx) and copy the same to the folder where you have previously deleted the zip file.

    step5: open android studio and go to file->setting select 'gradle' and click on 'use local gradle distribution' and set 'gradle home' to 'C:\Users\Khurshid\.gradle\wrapper\dists\gradle-1.12-all\2apkk7d25miauqf1pdjp1bm0uo\gradle-1.12-all.zip' and click ok.

    step6: It will download some file over the internet. If download doesn't start automatically then restart android studio.

    step7: Be patience and let it download some important stuff and after that everything should be working fine. This method will help you save your internet data. Downloading the entire gradle directory will consume double the data.

    Thank You

提交回复
热议问题