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

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

Open
John-2009 opened this issue Feb 20, 2023 · 1 comment
Open

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

John-2009 opened this issue Feb 20, 2023 · 1 comment

Comments

@John-2009
Copy link

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
Copy link

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

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

No branches or pull requests

2 participants