llfbandit / record

Audio recorder from microphone to a given file path. No external dependencies, MediaRecorder is used for Android an AVAudioRecorder for iOS.
https://pub.dev/packages/record
212 stars 174 forks source link

Error while dexing #361

Closed Roee-Tsur closed 1 day ago

Roee-Tsur commented 2 days ago

Package version 5.1.2

Environment

Describe the bug When trying to run the app on my pixel 6 (Android 14) I get the following error:

ERROR:D8: com.android.tools.r8.kotlin.H

FAILURE: Build failed with an exception.

Expected behavior Expected the app to build

Additional context

  1. I followed the new 5.1.2 android configuration instructions
  2. My project's kotlin version is 1.9.23, not 1.9.22, so I don't know how this error is related.
elijahloola commented 2 days ago

Package version record 5.1.2

Environment OS: Android Describe the bug When trying to run the app on my pixel 4 (Android 14) I get the following error:

ERROR:C:\Users\elija\StudioProjects\AppName\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

FAILURE: Build failed with an exception.

pierremrtn commented 1 day ago

Same problem

llfbandit commented 1 day ago

record_android published to 1.2.4. Revert to Java 8. If you still encounter issue, please refer to https://github.com/llfbandit/record/tree/master/record_android to update AGP plugin.