flutter_native_opencv icon indicating copy to clipboard operation
flutter_native_opencv copied to clipboard

Cannot run because of issue about deprecated version of the Android embedding

Open thanhkhanhcntt opened this issue 3 years ago • 1 comments

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 The plugin native_opencv requires your app to be migrated to the Android embedding v2. Follow the steps on https://flutter.dev/go/android-project-migration and re-run this command.

thanhkhanhcntt avatar Jun 22 '22 06:06 thanhkhanhcntt

I followed the steps, and the only change were two changes in AndroidManifest.xml to the android:name:

    ...
    <application
        android:name="${applicationName}"
        android:label="flutter_opencv_example"
        android:icon="@mipmap/ic_launcher">
        <activity
            android:name="io.flutter.embedding.android.FlutterActivity"

pohara60 avatar Dec 28 '22 14:12 pohara60