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

Android v2 embedding migration #32

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

dasrocky
Copy link

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.

@undcloud
Copy link

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

@shashvat1965
Copy link

did you find a solution for this?

Copy link

@TseWong1 TseWong1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updating V2 embedding help repo run with current versions of flutter

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

Successfully merging this pull request may close these issues.

None yet

4 participants