Android native code prompts error
This app is using a deprecated version of the Android embedding. To avoid unexpected runtime failures, or future build failures, try to migrate this app to the V2 embedding. Take a look at the docs for migrating an app: https://github.com/flutter/flutter/wiki/Upgrading-pre-1.12-Android-projects Launching lib\main.dart on 5G in debug mode... E:\flutter_app\example\move_to_background-master\android\src\main\java\com\sayegh\move_to_background\MoveToBackgroundPlugin.java:13: ����: [deprecation] PluginRegistry�е�Registrar�ѹ�ʱ import io.flutter.plugin.common.PluginRegistry.Registrar; ^ E:\flutter_app\example\move_to_background-master\android\src\main\java\com\sayegh\move_to_background\MoveToBackgroundPlugin.java:24: ����: [deprecation] PluginRegistry�е�Registrar�ѹ�ʱ public static void registerWith(Registrar registrar) { ^ 2 ������ E:\flutter_app\example\move_to_background-master\example\android\app\src\main\java\com\sayegh\move_to_background_example\MainActivity.java:4: ����: [deprecation] io.flutter.app�е�FlutterActivity�ѹ�ʱ import io.flutter.app.FlutterActivity; ^ E:\flutter_app\example\move_to_background-master\example\android\app\src\main\java\com\sayegh\move_to_background_example\MainActivity.java:7: ����: [deprecation] io.flutter.app�е�FlutterActivity�ѹ�ʱ public class MainActivity extends FlutterActivity { ^ E:\flutter_app\example\move_to_background-master\example\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java:14: ����: [deprecation] PluginRegistry�е�registrarFor(String)�ѹ�ʱ MoveToBackgroundPlugin.registerWith(registry.registrarFor("com.sayegh.move_to_background.MoveToBackgroundPlugin")); ^ E:\flutter_app\example\move_to_background-master\example\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java:19: ����: [deprecation] PluginRegistry�е�hasPlugin(String)�ѹ�ʱ if (registry.hasPlugin(key)) { ^ E:\flutter_app\example\move_to_background-master\example\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java:22: ����: [deprecation] PluginRegistry�е�registrarFor(String)�ѹ�ʱ registry.registrarFor(key); ^ 5 ������ Running Gradle task 'assembleDebug'... 19.9s √ Built build\app\outputs\flutter-apk\app-debug.apk. Installing build\app\outputs\flutter-apk\app.apk... 14.1s Syncing files to device 5G... 98ms
Flutter run key commands. r Hot reload.