yxwandroid / flutter_plugin_record

flutter 仿微信录制语音功能 支持android和ios
Apache License 2.0
320 stars 129 forks source link

flutter 升级到3.0,运行不了 #101

Open k3v1n-uncle opened 2 years ago

k3v1n-uncle commented 2 years ago

FAILURE: Build failed with an exception.

BUILD FAILED in 33s Exception: Gradle task assembleDebug failed with exit code 1

RoleWong commented 1 year ago

可以直接使用我们团队维护的fork版本:https://pub.dev/packages/flutter_plugin_record_plus

解决了若干bug,升级至最新的kotlin,支持flutter 3.0

iBinbro commented 1 year ago

可以直接使用我们团队维护的fork版本:https://pub.dev/packages/flutter_plugin_record_plus

解决了若干bug,升级至最新的kotlin,支持flutter 3.0

直接使用 根据传递的路径进行语音录制 会报错 V/AudioManager(12747): querySoundEffectsEnabled... W/_record_exampl(12747): Accessing hidden method Lsun/misc/Unsafe;->getUnsafe()Lsun/misc/Unsafe; (greylist,core-platform-api, linking, allowed) W/_record_exampl(12747): Accessing hidden method Lsun/misc/Unsafe;->objectFieldOffset(Ljava/lang/reflect/Field;)J (greylist,core-platform-api, linking, allowed) W/_record_exampl(12747): Accessing hidden method Lsun/misc/Unsafe;->compareAndSwapObject(Ljava/lang/Object;JLjava/lang/Object;Ljava/lang/Object;)Z (greylist, linking, allowed) W/_record_exampl(12747): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)