• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

android_jdk用于开发android的JDK版本要求概况(2021AGP7.0的jdk要求)/AGP版本发布历史日记releaseNote

武飞扬头像
xuchaoxin1375
帮助1

官方消息

7.0.0(2021 年 7 月)
Android Gradle 插件 7.0.0 是一个主要版本,包含各种新功能和改进。

7.0.1(2021 年 8 月)

本次要更新包含多项 bug 修复。 如需查看重要 bug 修复的列表,请阅读版本更新博客上的相关博文。

兼容性

学新通

需要 JDK 11 才能运行 AGP 7.0
使用 Android Gradle 插件 7.0 构建应用时,现在需要 JDK 11 才能运行 Gradle。Android Studio Arctic Fox 捆绑了 JDK 11,并将 Gradle 配置为默认使用 JDK 11,这意味着大多数 Android Studio 用户不需要对项目进行任何配置更改。

如需手动设置 JDK 版本供 Android Studio 中的 AGP 使用,您需要使用 JDK 11 或更高版本。

AGP release Note

offical link to query

When you update Android Studio, you may receive a prompt to also update Gradle to the latest available version. You can choose to accept the update or manually specify a version based on your project’s build requirements.

The following table lists which version of Gradle is required for each version of the Android Gradle plugin. For the best performance, you should use the latest possible version of both Gradle and the plugin.
学新通

从表中可以看出AGP插件的版本号命名规则现在已经趋向与靠近gradle软件的版本,而不是以前(4.2.0 )版本是按照androidStudio来命名的.(因此,版本号看起来有所跳跃)

You can specify the Gradle version in either the File > Project Structure > Project menu in Android Studio, or by editing the Gradle distribution reference in the gradle/wrapper/gradle-wrapper.properties file. The following example sets the Gradle version to 6.7.1 in the gradle-wrapper.properties file.

... distributionUrl = "https\://services.gradle.org/distributions/gradle-6.7.1-all.zip" ...

这篇好文章是转载于:学新通技术网

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 学新通技术网
  • 本文地址: /boutique/detail/tanhgfgejg
系列文章
更多 icon
同类精品
更多 icon
继续加载