从7.3.1升级到Android Gradle插件7.4.2后,卡在minifyReleaseWithR8上

xuo3flqw  于 2023-10-19  发布在  Android
关注(0)|答案(1)|浏览(549)

这是我使用--info运行Android应用的发布版本时得到的最后一个输出:

.gradle\caches\modules-2\files-2.1\io.ktor\ktor-client-core-jvm\1.5.4\81e8f8bb9622b96661c739ca18146e4079191c20\ktor-client-core-jvm-1.5.4.jar: R8: Invalid signature '(TTBuilder;)V' for method void io.ktor.client.HttpClientConfig$install$1.invoke(java.lang.Object).
Validation error: A type variable is not in scope.
Signature is ignored and will not be present in the output.

AAPT2 aapt2-7.4.2-8841542-windows Daemon #0: shutdown
AAPT2 aapt2-7.4.2-8841542-windows Daemon #1: shutdown
AAPT2 aapt2-7.4.2-8841542-windows Daemon #2: shutdown
AAPT2 aapt2-7.4.2-8841542-windows Daemon #3: shutdown
AAPT2 aapt2-7.4.2-8841542-windows Daemon #4: shutdown
AAPT2 aapt2-7.4.2-8841542-windows Daemon #5: shutdown
2jcobegt

2jcobegt1#

由R8团队解决。当我将此添加到settings.gradle时,问题就消失了:

pluginManagement {
    buildscript {
        repositories {
            mavenCentral()
            maven {
                url = uri("https://storage.googleapis.com/r8-releases/raw")
            }
        }
        dependencies {
            classpath("com.android.tools:r8:4.0.67")
        }
    }
}

请参阅此链接了解更多信息:https://issuetracker.google.com/issues/295509069

相关问题