Cordova Android 报错 升级了studio
2019-12-09 本文已影响0人
我就是看看哦
1、brew install gradle
2、gradle -v
显示 Welcome to Gradle 6.0.1! 安装成功
安装后在/usr/local/bin 里面
3、cordova build android
然后报错
Minimum supported Gradle version is 5.1.1. Current version is 4.10.3
找到项目 /platforms/android/cordova/lib/builders/ProjectBuilder.js
修改https\\://services.gradle.org/distributions/gradle-4.10.3-all.zip
https\\://services.gradle.org/distributions/gradle-5.1.1-all.zip
4、cordova build android编译成功
包目录 ~/platforms/android/app/build/outputs/apk/debug/app-debug.apk