Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error: Execution failed for task ':app:mergeLibDexDebug'. #338

Closed
MRtootisabz opened this issue Jun 4, 2024 · 1 comment
Closed

Comments

@MRtootisabz
Copy link

Package version

Environment

  • Flutter version: 3.22.0
  • Dart: 3.4.0
  • Android studio Jellyfish Patch 1
  • emulator API 30 android version 11
  • Windows 11

Describe the bug

when running flutter project during build this error comes:
project\build\record_android\intermediates\runtime_library_classes_dir\debug\com\llfbandit\record\record\format\Format.class: D8: com.android.tools.r8.internal.Hc: Sealed classes are not supported as program classes
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:mergeLibDexDebug'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Failed to transform debug (project :record_android) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, com.android.build.api.attributes.AgpVersionAttr=7.3.0, com.android.build.api.attributes.BuildT
ypeAttr=debug, com.android.build.gradle.internal.attributes.VariantAttr=debug, dexing-enable-desugaring=true, dexing-enable-jacoco-instrumentation=false, dexing-is-debuggable=true, dexing-min-sdk=24, org.gradle.category=library, org.gradle.jvm.environment=android, org.gradle.libraryelements=classes, org.gradle.usage=java-runtime, org.jetbrains.kotlin.platform.type=androidJvm}.
> Execution failed for DexingNoClasspathTransform: C:\Users\info\Documents\GitHub\Tooti\build\record_android\intermediates\runtime_library_classes_dir\debug.
> Error while dexing.

Steps to reproduce the behavior:

  1. record flutter package 5.1.1 or 5.0.1

Expected behavior

flutter run fails during build

@llfbandit
Copy link
Owner

Duplicate #333

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants