无法在安卓 13 上运行带有just_audio的应用程序



我正在使用just_audio和dart:2.18.0 flutter 3.3.0,当瞄准android Api 33时导致的错误

C:srcflutter.pub-cachehostedpub.dartlang.orgaudio_service-0.18.4androidsrcmainjavacomryanheiseaudioservice audioservice .java:312: warning: [deprecation] stopForeground(boolean) in Service已被弃用stopForeground (! config.androidResumeOnClick);^C:srcflutter.pub-cache hosting pub.dartlang.orgaudio_service-0.18.4androidsrcmainjavacomryanheiseaudioservice audioservice .java:586: warning: [deprecation] stopForeground(boolean) in Service已被弃用stopForeground(假);^C:srcflutter.pub-cachehostedpub.dartlang.orgaudio_service-0.18.4androidsrcmainjavacomryanheiseaudioservice audioservice .java:795: warning: [deprecation] get(String) in BaseBundle已被弃用最终KeyEvent事件= (KeyEvent)mediaButtonEvent.getExtras().get(Intent.EXTRA_KEY_EVENT);^error:发现警告并指定-WerrorC:srcflutter.pub-cachehostedpub.dartlang.orgaudio_service-0.18.4androidsrcmainjavacomryanheiseaudioserviceAudioServicePlugin.java:1142: warning: [deprecation] get(String) in BaseBundle已弃用Object value = bundle.get(key);

我的问题解决了,运行以下命令

flutter pub upgrade

相关内容

  • 没有找到相关文章

最新更新