Hi all, im having this issue and trying my best to...
# community-support
m
Hi all, im having this issue and trying my best to fix it but it doesnt work. flutter build apk manage to build it but if i press green triangle thingy on android studio it shows this error. fyi im connecting to my physical android device to android studio as well. ERROR: D8: com.android.tools.r8.internal.yw FAILURE: Build failed with an exception. * What went wrong: Execution failed for task 'appmergeExtDexDebug'.
Could not resolve all files for configuration 'appdebugRuntimeClasspath'.
> Failed to transform play-services-measurement-api-22.1.0.aar (com.google.android.gmsplay services measurement api22.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.status=release, org.gradle.usage=java-runtime}. > Execution failed for DexingWithClasspathTransform: C:\Users\Shafi\.gradle\caches\transforms-3\45e74312ec667583f2677fecb3e835ab\transformed\jetified-play-services-measurement-api-22.1.0-runtime.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 36s ┌─ 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