I just installed the package, and without doing anything at all, the app already breaks. These are the logs from the debug console:
ERROR:D8: com.android.tools.r8.kotlin.H
ERROR:D8: com.android.tools.r8.kotlin.H
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeExtDexDebug'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Failed to transform annotation-jvm-1.9.1.jar (androidx.annotation:annotation-jvm:1.9.1) 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.jvm.environment=standard-jvm, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime, org.jetbrains.kotlin.platform.type=jvm}.
> Execution failed for DexingWithClasspathTransform: C:\Users\gonza\.gradle\caches\transforms-3\bce7cff575fb6b98d86458127cdb5512\transformed\jetified-annotation-jvm-1.9.1.jar.
> Error while dexing.
> Failed to transform kotlin-stdlib-2.1.0.jar (org.jetbrains.kotlin:kotlin-stdlib:2.1.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.jvm.environment=standard-jvm, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime, org.jetbrains.kotlin.platform.type=jvm}.
> Execution failed for DexingWithClasspathTransform: C:\Users\gonza\.gradle\caches\transforms-3\3dacbcbabde2f8dc3e69ec3c17f9a9c1\transformed\jetified-kotlin-stdlib-2.1.0.jar.
> Error while dexing.
* 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.
* Get more help at https://help.gradle.org
BUILD FAILED in 51s
┌─ Flutter Fix ──────────────────────────────────────────────────────────────┐
│ [!] The shrinker may have failed to optimize the Java bytecode. │
│ To disable the shrinker, pass the `--no-shrink` flag to this command. │
│ To learn more, see: https://developer.android.com/studio/build/shrink-code │
└────────────────────────────────────────────────────────────────────────────┘
Error: Gradle task assembleDebug failed with exit code 1
And this is the upgrader version used:
upgrader:
dependency: "direct main"
description:
name: upgrader
sha256: "9b907a8c956dbf3f2d0430d16134e27543cba98eab31f19a2240ab1c4d920506"
url: "https://pub.dev"
source: hosted
version: "11.3.0"
By the way I currently have Kotlin 1.7.10 installed, but I’ve tried using other versions without success. I tested the latest version before 2.0 (1.9.25) and also tried Kotlin 2.0.20, but neither worked.
Any solution or ideas of why this could be happening? Thanks in advance
I just installed the package, and without doing anything at all, the app already breaks. These are the logs from the debug console:
And this is the upgrader version used:
By the way I currently have Kotlin 1.7.10 installed, but I’ve tried using other versions without success. I tested the latest version before 2.0 (1.9.25) and also tried Kotlin 2.0.20, but neither worked.
Any solution or ideas of why this could be happening? Thanks in advance