Cordova Build Gradle Error while opening/extracting zip file

后端 未结 4 2032
傲寒
傲寒 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条回答
  •  醉梦人生
    2021-01-02 01:05

    For anyone facing this problem when first building a react-native Android app, it's likely to be the gradle-2.4 file, which is generally found in:

    /var/root/.gradle/wrapper/dists/gradle-2.4-all//gradle-2.4
    

    Just manually delete the zip file, download a new copy and replace.

提交回复
热议问题