Skip to content

record_android Sealed classes are not supported as program classes #484

@enzoftware

Description

@enzoftware

Package version
5.2.1

Environment
Android

Describe the bug
Problem while building the app

ERROR:/Users/enzolizama/Projects/Somnio/daily-word/app/build/record_android/intermediates/runtime_library_classes_dir/debug/com/llfbandit/record/record/format/Format.class: D8: com.android.tools.r8.internal.nc: Sealed classes are not supported as program classes

What went wrong:
Execution failed for task ':app:mergeLibDexProductionDebug'.
> Could not resolve all files for configuration ':app:productionDebugRuntimeClasspath'.
   > Failed to transform debug (project :record_android) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, com.android.build.api.attributes.AgpVersionAttr=7.2.0, com.android.build.api.attributes.BuildTypeAttr=debug, com.android.build.gradle.internal.attributes.VariantAttr=debug, dexing-enable-desugaring=true, dexing-is-debuggable=true, dexing-min-sdk=31, 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: /Users/enzolizama/Projects/Somnio/daily-word/app/build/record_android/intermediates/runtime_library_classes_dir/debug.
         > Error while dexing.

To Reproduce

Steps to reproduce the behavior:

  1. Try to run the app just adding the dependency

Expected behavior

Runs the app

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions