ionic build Android错误记录 error in opening zip file
0.写在前头
运行 :cordova requirements
Requirements check results for android:
Java JDK: installed 1.8.0
Android SDK: installed
Android target: installed android-21,android-22,android-23,android-24,android-25
Gradle: installed
Requirements check results for ios:
Apple OS X: installed darwin
Xcode: installed 7.2
ios-deploy: installed 1.9.0
CocoaPods: not installed
可以检查环境
1.try it 看看能不能正常运行
cordova -v
cordova create testing
cd testing
cordova plugin add cordova-plugin-sim
cordova platform add android
cordova build android
2.java -version 检查java环境
3.error in opening zip file如果是这个错误,
大概是因为gradle文件太大,没有下载完全,
http://downloads.gradle.org/distributions/gradle-2.13-all.zip重新下载到本地,
找到你之前下载的目录,删除gradle-2.13-all/7hsc6vr6mi3i6i5m7q9hj4ci1q/下的所有文件,copy刚下载的,
再尝试ionic run android
4.如果是ionic插件的错误,可能和Android版本有关系,
尝试 ionic platform rm android
ionic platform add android@5.2.2带上版本号
再 ionic run android
学会勇敢