am15h / object_detection_flutter

Truly realtime object-detection in flutter
188 stars 113 forks source link

Build failed due to use of deprecated Android v1 embedding. #37

Open DeveloperMarcial opened 2 years ago

DeveloperMarcial commented 2 years ago

Error Code:

https://flutter.dev/go/android-project-migration

to migrate your project. You may also pass the --ignore-deprecation flag to ignore this check and continue with the deprecated v1 embedding. However, the v1 Android embedding will be removed in future versions of Flutter. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ The detected reason was:

C:\Downloads\Code\Flutter\Projects\object_detection_flutter-master\android\app\src\main\AndroidManifest.xml uses android:name="io.flutter.app.FlutterApplication" ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Build failed due to use of deprecated Android v1 embedding.

undcloud commented 2 years ago

you can try this pr:
https://github.com/am15h/object_detection_flutter/pull/32

UsamaKarim commented 1 year ago

Delete android folder and run this command flutter create --platforms android . to generate android folder again