#matt07465_19276
1 messages · Page 1 of 1 (latest)
hey! yeah I had the same issue when doing an update last week. Make sure you're using the latest version of Android Studio and do also follow the suggestions to update things like the Gradle plugin.
also if you click into the build errors and expand them you can generally find a root cause(for me I also had to change ext.kotlin_version and com.android.tools:r8 to the latest)
Hi. Thanks. I believe I'm on the latest version of Android Studio, Hedgehog. As for the Gradle Plugin version, I'll have to check that.
I'm afraid the build error doesn't mean much to me, I have this at the bottom of the logs.
s {artifactType=android-dex, asm-transformed-variant=NONE, dexing-enable-desugaring=true, dexing-enable-jacoco-instrumentation=false, dexing-is-debuggable=true, dexing-min-sdk=21, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtime}.
Execution failed for DexingWithClasspathTransform: C:\Users\Matthew.Srotyr.gradle\caches\transforms-3\16c9a58eee6b4df10e5a7efd2e0e7b8e\transformed\jetified-accompanist-flowlayout-0.32.0-runtime.jar.
Error while dexing.
Failed to transform kotlin-stdlib-1.9.0.jar (org.jetbrains.kotlin:kotlin-stdlib:1.9.0) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, dexing-enable-desugaring=true, dexing-enable-jacoco-instrumentation=false, dexing-is-debuggable=true, dexing-min-sdk=21, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
Execution failed for DexingWithClasspathTransform: C:\Users\Matthew.Srotyr.gradle\caches\transforms-3\a37e4ca4c28f6fe4fa3827d45102fb28\transformed\jetified-kotlin-stdlib-1.9.0.jar.
Error while dexing.
yeah make sure you are using the latest version of Android Gradle Plugin
Okay, I'll try and upgrade that and see what happens.
It seems to me that the issue is in fact that to use Kotlin 1.9.x project needs to already be on Android Gradle Plugin 8
Okay, so I my Gradle Version is already version 8, specifically 8.0.1. I could try 8.6?
it's worth a try!