我正在尝试构建我的 Android 应用程序,我一直在努力在 Cordova 上设置构建工具的版本,因为在 android studio 中,对我有用的修复是这个Youtube Tutorial我想如果我可以在 Android Studio 上修复它,我可以修复它在 Cordova 构建上,所以我尝试在我的 build.gradle 中复制视频上的修复,我尝试修改我的 build.gradle projet.ext:
project.ext {
defaultBuildToolsVersion="30.0.3" //String
defaultMinSdkVersion=22 //Integer - Minimum requirement is Android 5.1
defaultTargetSdkVersion=29 //Integer - We ALWAYS target the latest by default
defaultCompileSdkVersion=29 //Integer - We ALWAYS compile with the latest by default
}
但是它仍然使用 31.0.0 版本。
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 10s
Command failed with exit code 1: C:\Users\adam\OneDrive\Documents\Projects\Diabetes App\Bolus-Calculator\platforms\android\gradlew cdvBuildDebug -b C:\Users\adam\OneDrive\Documents\Projects\Diabetes App\Bolus-Calculator\platforms\android\build.gradle
谁能告诉我如何在 Cordova 中复制修复程序。
非常感谢,亚当