[英]Cordova - Android - Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0
Making an android project with cordova, when I try to making a build, it failed with this issue:使用 cordova 制作 android 项目,当我尝试构建时,它因以下问题而失败:
execution failed for task ':app:compileDebugJavaWithJavac'
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0
These are my versions:这些是我的版本:
Cordova: 10.0.0
Android Platform: 10.1.2
Gradle: 7.1.1
I am absolutely sure that Gradle is installed when I install the Android platform (and it is out of my control) and that everything was working fine until 1 month ago... and I have not changed anything我绝对确定在我安装 Android 平台时安装了 Gradle(它超出了我的控制范围),并且直到 1 个月前一切正常......而且我没有改变任何东西
How I can fix this issue???我该如何解决这个问题??? Have I to update Gradle?
我需要更新 Gradle 吗? How?
如何? Have I to update the project?
我要更新项目吗? How?
如何?
it's very strange... and frustrating这很奇怪......而且令人沮丧
Updating gradle solves the problem.更新 gradle 解决了这个问题。
There are different ways to update the gradle, as explained in their official website: https://gradle.org/install/更新 gradle 有多种方法,如其官方网站所述: https://gradle.org/install/
Assuming that you are a windows user :假设您是 windows 用户:
Downloading binary files of gradle and extracting the folder to the directory "c:/gradle" is enough.下载 gradle 的二进制文件并将文件夹解压到目录“c:/gradle”就足够了。
To fix the issue, I've reverted to cordova-android
version 9.1.0
.为了解决这个问题,我已经恢复到
cordova-android
版本9.1.0
。 I've no idea, as of now, why cordova-android
version 10
points to gradle
, which as of now isn't possible to download...到目前为止,我不知道为什么
cordova-android
版本10
指向gradle
,目前无法下载...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.