Issue with Dexing and Deprecated API in record Package on Android Build #434
Unanswered
Nikunj-Flutter
asked this question in
Q&A
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am encountering an issue while building my Flutter app with the record package. Specifically, I am getting the following error related to Dexing and a deprecated API when trying to build the Android app:
`Note: C:\Users\nikunj\AppData\Local\Pub\Cache\hosted\pub.dev\contacts_service-0.6.3\android\src\main\java\flutter\plugins\contactsservice\contactsservice\ContactsServicePlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
ERROR:C:\Users\nikunj\Desktop\work\help_app\build\record_android\intermediates\runtime_library_classes_jar\debug\classes.jar: 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.
Execution failed for task ':app:mergeLibDexDebug'.
BUILD FAILED in 25s`
Using record 5.2.0
The issue seems to be related to the D8 Dexing process, which is not supporting sealed classes, and there is also a deprecated API warning. Could anyone provide insight into how to resolve this issue?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions