westracer / flutter_native_opencv

Using OpenCV natively in C++ in a Flutter app with Dart FFI
https://medium.com/flutter-community/integrating-c-library-in-a-flutter-app-using-dart-ffi-38a15e16bc14
MIT License
215 stars 38 forks source link

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

Open thanhkhanhcntt opened 2 years ago

thanhkhanhcntt commented 2 years ago

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.

pohara60 commented 1 year ago

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"