Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]/User/xxxx/.pub-cache/hosted/pub.flutter-io.cn/fijkplayer-0.11.0/android/src/main/java/com/befovy/fijkplayer/FijkPlugin.java:57: 警告: [deprecation] PluginRegistry中的Registrar已过时 import io.flutter.plugin.common.PluginRegistry.Registrar; #638

Open
jeckni opened this issue Oct 21, 2024 · 0 comments

Comments

@jeckni
Copy link

jeckni commented Oct 21, 2024

/Users/nizhangfu/.pub-cache/hosted/pub.flutter-io.cn/fijkplayer-0.11.0/android/src/main/java/com/befovy/fijkplayer/FijkPlugin.java:57: 警告: [deprecation] PluginRegistry中的Registrar已过时
import io.flutter.plugin.common.PluginRegistry.Registrar;
^
/Users/xxxx/.pub-cache/hosted/pub.flutter-io.cn/fijkplayer-0.11.0/android/src/main/java/com/befovy/fijkplayer/FijkPlugin.java:84: 警告: [deprecation] PluginRegistry中的Registrar已过时
private Registrar mRegistrar;
^
/Users/xxxx/.pub-cache/hosted/pub.flutter-io.cn/fijkplayer-0.11.0/android/src/main/java/com/befovy/fijkplayer/FijkPlugin.java:104: 警告: [deprecation] PluginRegistry中的Registrar已过时
public static void registerWith(Registrar registrar) {
^
/Users/xxxx/.pub-cache/hosted/pub.flutter-io.cn/fijkplayer-0.11.0/android/src/main/java/com/befovy/fijkplayer/FijkPlugin.java:229: 警告: [deprecation] PluginRegistry中的Registrar已过时
private void initWithRegistrar(@nonnull Registrar registrar) {
^
/Users/xxxx/.pub-cache/hosted/pub.flutter-io.cn/fijkplayer-0.11.0/android/src/main/java/com/befovy/fijkplayer/FijkPlugin.java:570: 警告: [deprecation] AudioManager中的abandonAudioFocus(OnAudioFocusChangeListener)已过时
audioManager.abandonAudioFocus(this);
^
5 个警告

提示有5个警告,我该如何才能避免运行爆出这五个警告呀。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant