在 ionic cordova 应用程序中创建构建时无法编译设置文件 Settings.gradle

发布于 2025-01-20 09:39:27 字数 498 浏览 1 评论 0原文

从最近几天获得此错误,无法获得解决方案。

使用以下命令在转换过程中使用离子和Cordova一般错误生成Android APK

ionic cordova build android

:不支持的类文件专业版本61 您可以在此处查看错误以更好地理解

我正在使用 Gradle v7.4.2 Java v17.0.2

steratings.gradle 文件中的自动代码是

// GENERATED FILE - DO NOT EDIT
apply from: "cdv-gradle-name.gradle"
include ":"
include ":CordovaLib"
include ":app"

Getting this error from last couple of days could not able to get solution.

using below command to generate android apk using ionic and cordova

ionic cordova build android

General error during conversion: Unsupported class file major version 61
You can checkout the error here for better understanding

I am using
Gradle v7.4.2
java v17.0.2

Automated code in settings.gradle file is

// GENERATED FILE - DO NOT EDIT
apply from: "cdv-gradle-name.gradle"
include ":"
include ":CordovaLib"
include ":app"

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文