londonappbrewery / Dicee-Flutter-Completed

The completed code for the Dicee Project - The Complete Flutter Development Bootcamp
https://www.appbrewery.co/
24 stars 67 forks source link

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

Open John-2009 opened 1 year ago

John-2009 commented 1 year ago

After clone the Dicee-Flutter-Completed project, trying to run it in my Android Studio: Build #AI-221.6008.13.2211.9514443, built on January 20, 2023. Runtime version: 11.0.15+0-b2043.56-9505619 amd64.

It displays the next warning and does not run. Could anyone can help me with this?

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Warning ────────────────────────────────────────────────────────────────────────────── Your Flutter application is created using an older version of the Android embedding. It is being deprecated in favor of Android embedding v2. Follow the steps at

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:\Users\jsoto\AndroidStudioProjects\Dicee-Flutter-Completed\android\app\src\main\AndroidManifest.xml uses android:name="io.flutter.app.FlutterApplication" ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Build failed due to use of deprecated Android v1 embedding.

gesh-rock commented 1 year ago

https://www.youtube.com/watch?v=JI3TzSTQGh4 Apply this, I got the output.