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

Android R8 issue #349

Closed
salahu01 opened this issue Jun 19, 2024 · 6 comments
Closed

Android R8 issue #349

salahu01 opened this issue Jun 19, 2024 · 6 comments

Comments

@salahu01
Copy link

salahu01 commented Jun 19, 2024

Package version

Environment

  • OS: Android

Describe the bug

I can't run my flutter project . I am getting error cause of this package . I run after removing this package and its worked .

Additional context

Add any other context about the problem here.

Execution failed for task ':app:minifyDebugWithR8'.

A failure occurred while executing com.android.build.gradle.internal.tasks.R8Task$R8Runnable
Compilation failed to complete, origin: /home/babu/Documents/fegno_project/build/record_android/intermediates/runtime_library_classes_jar/debug/classes.jar:com/llfbandit/record/record/format/Format.class

ERROR:/home/babu/Documents/fegno_project/build/record_android/intermediates/runtime_library_classes_jar/debug/classes.jar: R8: com.android.tools.r8.internal.Hc: Sealed classes are not supported as program classes

@salahu01 salahu01 changed the title Latest flutter android error Android R8 issue Jun 19, 2024
@Aanu1995
Copy link

Same here. I am unable to build the android app when I upgraded to the latest package (5.1.1).

I am using Flutter version 3.22.2

@xiemei1
Copy link

xiemei1 commented Jun 20, 2024

I got the same error. After removing record package, I can build the app.

Flutter version: 3.19.6
JDK: openjdk 17
gradle: 7.2
jvmTarget: '1.8'

@llfbandit
Copy link
Owner

@Aanu1995
Copy link

Aanu1995 commented Jun 20, 2024

https://github.com/llfbandit/record/blob/master/record_android/README.md

Thank you for the great job you are doing on the package. I think upgrading the grade version causes a breaking change and the version where the gradle was upgraded should be a major version bump (should be 6.0.0) instead of minor version 5.1.1 which now causes breaking change.

Unfortunately I can't upgrade the gradle version to AGP 8 because I am experiencing other issues due to other packages in my project that are yet to upgrade to AGP 8.

However, downgrading even record package to 5.0.0 is still throwing the error in Android.

@WXYzing
Copy link

WXYzing commented Jun 20, 2024

have the same issue.

@wb-hwang
Copy link

wb-hwang commented Jun 21, 2024

I fixed with this :

plugins {
    id "dev.flutter.flutter-plugin-loader" version "1.0.0"
    id "com.android.application" version "7.4.1" apply false
}

issues

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

6 participants