Android v2 embedding migration
Fixed the issue with Android embedding v1 issue as it was depreciated. Updated the packages to the latest version. Updated Kotlin version. Updated target, min, and compile SDK versions.
Hello, I meet this issue, can you have a look at it ?
(base) PS D:\flutter-test\object_detection_flutter-master2\object_detection_flutter> flutter run Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source! Launching lib\main.dart on PCT AL10 in debug mode... Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01 Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01 Warning: �����Ԫ�� (uri:"", local:"base-extension")������Ԫ��Ϊ<{}codename>,<{}layoutlib>,<{}api-level> Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source! e: D:\flutter_windows_3.0.5-stable\flutter.pub-cache\hosted\pub.flutter-io.cn\tflite_flutter_helper-0.3.1\android\src\main\kotlin\com\tfliteflutter\tfli te_flutter_helper\TfliteFlutterHelperPlugin.kt: (43, 1): Class 'TfliteFlutterHelperPlugin' is not abstract and does not implement abstract member public abstract fun onRequestPermissionsResult(p0: Int, p1: Array<(out) String!>, p2: IntArray): Boolean defined in io.flutter.plugin.common.PluginRegistry.Requ estPermissionsResultListener e: D:\flutter_windows_3.0.5-stable\flutter.pub-cache\hosted\pub.flutter-io.cn\tflite_flutter_helper-0.3.1\android\src\main\kotlin\com\tfliteflutter\tfli te_flutter_helper\TfliteFlutterHelperPlugin.kt: (143, 2): 'onRequestPermissionsResult' overrides nothing
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':tflite_flutter_helper:compileDebugKotlin'.
Compilation error. See log for more details
-
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
-
Get more help at https://help.gradle.org
BUILD FAILED in 4s Running Gradle task 'assembleDebug'... 5.7s Exception: Gradle task assembleDebug failed with exit code 1
did you find a solution for this?