简体   繁体   English

audio_service 插件颤动中的弃用错误

[英]Deprecation error in audio_service plugin flutter

I tried to run an application but it is giving the following deprecation error.我试图运行一个应用程序,但它给出了以下弃用错误。 I have upgraded to flutter 3 since then I am getting this error.从那以后我已经升级到颤振3,我收到了这个错误。 I have tried flutter clean, pub get, pub repair.我尝试过flutter clean、pub get、pub repair。 Still, the error is constant.不过,错误是恒定的。 I am using audio_service: ^0.18.2 and just_audio: ^0.9.24 versions.我正在使用 audio_service: ^0.18.2 和 just_audio: ^0.9.24 版本。 这是一张快照

That error means you are compiling against the next beta release of Android which deprecates some methods that were being used by audio_service.该错误意味着您正在针对 Android 的下一个 beta 版本进行编译,该版本弃用了 audio_service 正在使用的一些方法。 Someone has already submitted an issue on the project's GitHub page to support this beta version of Android, and the latest audio_service release should now support it.有人已经在项目的 GitHub 页面上提交了一个 issue 来支持这个 beta 版本的 Android,现在最新的 audio_service 版本应该支持它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM