警告:此 Android Gradle 插件(8.0.0)已测试至 compileSdk = 33。

huangapple go评论59阅读模式
英文:

Warning: This Android Gradle plugin (8.0.0) was tested up to compileSdk = 33

问题

Android Studio Flamingo 2022.2.1Android Gradle 插件 8.0.0 使用

kotlin = "1.8.20"
compileSdk = "33"
compileSdkExtension = "5"
buildToolsVersion = "33.0.2"
targetSdk = "33"
jvmTarget = "17"
kotlinJvmTarget = "17"

为什么会收到这条消息?

> 我们建议使用更新的 Android Gradle 插件以使用 compileSdk = 33
>
> 此 Android Gradle 插件(8.0.0)已测试至 compileSdk = 33。
>
> 强烈建议您更新项目以使用经过测试的较新版本的 Android Gradle 插件,该版本已与 compileSdk = 33 一起测试。
>
> 如果您已经使用了最新版本的 Android Gradle 插件,
> 您可能需要等待支持 compileSdk = 33 的较新版本可用为止。
>
> 要抑制此警告,请添加/更新
> android.suppressUnsupportedCompileSdk=33
> 到此项目的 gradle.properties。

同步,清理,重建无法帮助我

英文:

Android studio Flamingo 2022.2.1 with Android Gradle plugin 8.0.0 with

kotlin = "1.8.20"
compileSdk = "33"
compileSdkExtension = "5"
buildToolsVersion = "33.0.2"
targetSdk = "33"
jvmTarget = "17"
kotlinJvmTarget = "17"

Why am I getting this message?

> We recommend using a newer Android Gradle plugin to use compileSdk = 33
>
> This Android Gradle plugin (8.0.0) was tested up to compileSdk = 33.
>
> You are strongly encouraged to update your project to use a newer
> Android Gradle plugin that has been tested with compileSdk = 33.
>
> If you are already using the latest version of the Android Gradle plugin,
> you may need to wait until a newer version with support for compileSdk = 33 is available.
>
> To suppress this warning, add/update
> android.suppressUnsupportedCompileSdk=33
> to this project's gradle.properties.

Sync, Clean, Rebuild don't help me

答案1

得分: 1

基本上你有2个选择:

  • 降级 compileSdkVersion 33targetSdkVersion 33
  • 继续使用版本34并希望它能正常工作,因为它没有经过充分测试,但被建议兼容。
英文:

Basically you have 2 options:

  • downgrade compileSdkVersion 33 and targetSdkVersion 33
  • keep using with version 34 and hope it will work fine, because it wasn't properly tested, but suggested as compatible

答案2

得分: 0

看起来最大的Gradle版本与IDE版本相关联,因此您必须使用beta版IDE版本才能消除警告。Giraffe和Hedgehog目前都是beta版本。Google的问题跟踪器中有一个问题说Giraffe可以工作。

英文:

Looks like the max gradle version is linked to the IDE version, so you would have to go with a beta IDE version to make the warning go away. Giraffe and Hedgehog are the two in beta right now. There was an issue in Google's issue tracker that said Giraffe will work.

huangapple
  • 本文由 发表于 2023年4月19日 21:30:39
  • 转载请务必保留本文链接:https://go.coder-hub.com/76055143.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定