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

Upgrade Android embedding version #48

Open
elcolie opened this issue Aug 15, 2021 · 5 comments
Open

Upgrade Android embedding version #48

elcolie opened this issue Aug 15, 2021 · 5 comments

Comments

@elcolie
Copy link

elcolie commented Aug 15, 2021

/Users/sarit/flutter/bin/flutter --no-color pub get
Running "flutter pub get" in mi_card_flutter...                  1,701ms
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Warning
──────────────────────────────────────────────────────────────────────────────
Your Flutter application is created using an older version of the Android
embedding. It's being deprecated in favor of Android embedding v2. Follow the
steps at

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

to migrate your project.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

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
Process finished with exit code 0
@AbdelmohsenEdris
Copy link

Same error here

@noralorente
Copy link

I have the same problem.

@Jitender-yaduvanshi
Copy link

same problem solved

@protonmailtp
Copy link

how?

@AkshaySiddannavar
Copy link

AkshaySiddannavar commented Apr 9, 2022

Solution :

Step 1 : Create a new flutter project at your local system

Step 2 : Copy the code given in main.dart file of stub project and paste it into main.dart file of your local project

Step 3 : Make an 'assets' folder in your local project

Step 4 : download sound-files from github and put them into your local 'assets' folder

Step 5 : in your local pubspec.yaml file, add dependency for your 'assets' folder

Step 6 : Rename MyApp() in widget testing file to MaterialApp()

Hit save(in files other than pubspec.yaml), get all dependencies(in pubspec.yaml) and you're good to go

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

6 participants