Unsupported version number [55.0] (maximum 54.0, Java 10)

Caused by: java.io.IOException: Can’t read [/opt/android-sdk-linux/platforms/android-33/optional/android.car.jar] (Can’t process class [android/car/Car$CarServiceLifecycleListener.class] (Unsupported version number [55.0] (maximum 54.0, Java 10)))

最近google play要求sdk升至33。将一个unity 2021工程升至sdk33出包时提示上面的错误。

搜索得知,unity2021默认自带gradle使用的是
com.android.tools.build:gradle:4.0.1

使用的proguard版本是net.sf.proguard:proguard-gradle:6.0.3

需要升至6.1.1

使用以下方式升至6.1.1

<code> buildscript{
 
configurations.all {
    resolutionStrategy {
        // We want version 5.3.2 instead of 5.2.1.
        force 'net.sf.proguard:proguard-gradle:6.1.1'
    }
}
}</code>
发表评论?

0 条评论。

发表评论


注意 - 你可以用以下 HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>