- Cordova Android 报错 升级了studio
- flutter doctor --android-license
- Android Studio 3.2.1升级报错No IDEA
- Android studio 2.2 beta2 升级以后报错t
- Android-implementation找不到依赖库中的ja
- Android Studio 2.2 升级到 2.3报错文章
- Android Studio 4.1版本升级问题,打包失败和Pl
- AndroidStudio编译报错`General error
- android studio 3.1.3 AAPT2 error
- apps fail to build since NDK upd
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
网友评论