简体   繁体   English

Cordova - Android - 此版本中使用了已弃用的 Gradle 功能,使其与 Z7B5CC4FB56E11DC7520F701EC 不兼容

[英]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.

相关问题 React Native:Task:app:installDebug FAILED Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0 - React Native : Task :app:installDebug FAILED Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0 此版本中使用了已弃用的 Gradle 功能,使其与 Gradle 8.0 不兼容。 react-native 链接后 - Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. after react-native link 此版本中使用了已弃用的 Gradle 功能,使其与 Gradle 6 不兼容 - Deprecated Gradle features were used in this build, making it incompatible with Gradle 6 此版本中使用了已弃用的 Gradle 功能,使其与 Gradle 5.0 不兼容 - Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0 此版本中使用了已弃用的 Gradle 功能,使其与 Gradle X 不兼容 - Deprecated Gradle features were used in this build, making it incompatible with Gradle X Unity Android 构建错误 - 此构建中使用了已弃用的 Gradle 功能,使其与 Gradle 6.0 不兼容 - Error on Unity Android Build - Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0 当我执行 gradle lint 时出现错误“此版本中使用了已弃用的 Gradle 功能,使其与 Gradle 6.0 不兼容” - Error "Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0" When I do gradle lint React-Native Android Studio 项目构建失败,显示“此构建中使用了弃用的 Gradle 功能,使其与 Gradle 6.0 不兼容。” - React-Native Android Studio Project Build failed showing "Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0." 更新后无法构建 android 项目,错误:此构建中使用了已弃用的 Gradle 功能,使其与 Gradle 5.0 不兼容 - Cannot build android project after updating, error: Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0 此版本中使用了已弃用的 Gradle 功能,使其与 Gradle 7.0 不兼容。 运行react-native时运行-android - Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. When running react-native run-android
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM