在 android kotlin 中发布应用程序时出现 jetified-kotlin-reflect 错误
I'm getting jetified-kotlin-reflect error while getting the release of the app in android kotlin
app:minifyReleaseWithR8 到这里就报错了。 minify为false时没有报错。
这个错误。
Type kotlin.reflect.jvm.internal.impl.serialization.deserialization.builtins.BuiltInsResourceLoader is defined multiple times: C:\Users\ErtugrulKoc\.gradle\caches\transforms-37211715f0186205ddc0da1f04cb9b6\transformed\jetified-kotlin-reflect-1.5.30.jar:kotlin/reflect/jvm/internal/impl/serialization/deserialization/builtins/BuiltInsResourceLoader.class, C:\Users\ErtugrulKoc\.gradle\caches\transforms-37211715f0186205ddc0da1f04cb9b6\transformed\jetified-kotlin-reflect-1.5.30.jar:META-INF/versions/9/kotlin/reflect/jvm/internal/impl/serialization/deserialization/builtins/BuiltInsResourceLoader.class
Execution failed for task ':app:minifyReleaseWithR8'.
> com.android.tools.r8.CompilationFailedException: Compilation failed to complete, origin: C:\Users\ErtugrulKoc\.gradle\caches\transforms-37211715f0186205ddc0da1f04cb9b6\transformed\jetified-kotlin-reflect-1.5.30.jar:kotlin/reflect/jvm/internal/impl/serialization/deserialization/builtins/BuiltInsResourceLoader.class
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
我找到了这个问题的原因。这是由于我的计算机上缺少文件。我可以在另一台设备上获取版本。
app:minifyReleaseWithR8 到这里就报错了。 minify为false时没有报错。
这个错误。
Type kotlin.reflect.jvm.internal.impl.serialization.deserialization.builtins.BuiltInsResourceLoader is defined multiple times: C:\Users\ErtugrulKoc\.gradle\caches\transforms-37211715f0186205ddc0da1f04cb9b6\transformed\jetified-kotlin-reflect-1.5.30.jar:kotlin/reflect/jvm/internal/impl/serialization/deserialization/builtins/BuiltInsResourceLoader.class, C:\Users\ErtugrulKoc\.gradle\caches\transforms-37211715f0186205ddc0da1f04cb9b6\transformed\jetified-kotlin-reflect-1.5.30.jar:META-INF/versions/9/kotlin/reflect/jvm/internal/impl/serialization/deserialization/builtins/BuiltInsResourceLoader.class
Execution failed for task ':app:minifyReleaseWithR8'.
> com.android.tools.r8.CompilationFailedException: Compilation failed to complete, origin: C:\Users\ErtugrulKoc\.gradle\caches\transforms-37211715f0186205ddc0da1f04cb9b6\transformed\jetified-kotlin-reflect-1.5.30.jar:kotlin/reflect/jvm/internal/impl/serialization/deserialization/builtins/BuiltInsResourceLoader.class
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
我找到了这个问题的原因。这是由于我的计算机上缺少文件。我可以在另一台设备上获取版本。