Cordova Build Gradle Error while opening/extracting zip file

后端 未结 4 2083
傲寒
傲寒 2021-01-02 00:36

When I Run: cordova build, I got this:

Running command:/Users/tyrant/workspace/ideaProject/hello/platforms/android/cordova/build
ANDROID_HOME=/Users/tyrant/s         


        
4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-02 01:23

    I read a lot of this problem, and i found 2 solutions, the 1st one is to remove all contents inside it (as the last post said) but it doesn't work for all, in my case don`t.

    The other solution is to put in a local folder of the project the zip file and change the path, and that is not a real solution, cause the size is 50 mb...

    So the easiest way i found is just download the right zip from the Gradle site--> https://services.gradle.org/distributions and just replace it in your computer manually... and this works instantly for me.

提交回复
热议问题