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

Migrating Project #17

Open
FredWolfe opened this issue Oct 22, 2020 · 3 comments
Open

Migrating Project #17

FredWolfe opened this issue Oct 22, 2020 · 3 comments

Comments

@FredWolfe
Copy link

So anytime I try to import any project from the course resource I am being told to migrate the project; #

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.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
but when I follow the instructions and run the app it takes long, i.e. Running Gradle Task takes long than usual and I mean too long. so I ignore it, but i keep getting the warning to migrate project what do I do

@ghost
Copy link

ghost commented Oct 23, 2020

if gradle version is different than the one already exisiting in your system then it will take time downloading it.
1 : just go to your project then android\gradle\wrapper\gradle-wrapper.properties
2 : check the gradle version used in the project
3 : then see the one already used in your system at : C:\Users\omarSaleh.gradle\wrapper\dists and see the version existing
4 : if both versions match, then go to terminal and try flutter clean then flutter run .
5: if they dont , just download the one used in the project and extract the file to the path in step 3 .
all the best!

@FredWolfe
Copy link
Author

FredWolfe commented Oct 23, 2020 via email

@pantha704
Copy link

pantha704 commented Jan 7, 2024

I was also having the same issue and took a long while to fix it,

I replaced my "Clima-Flutter/android" with "[ Directory to any other flutter project which runs fine on your device ]/android" directory.

also in android/app/src/main/AndroidManifest.xml,
change the "android:label" to the app name,
<application
android:label="clima"
android:name="${applicationName}"

and it runs fine.

I also tried to manually edit the code as shown here: https://github.com/flutter/flutter/wiki/Upgrading-pre-1.12-Android-projects
at steps: 1a , 2, 3, 5.
but after that it was showing some "flutter.groovy" error and failed to build.
So i replaced the whole android directory, probably not the best option but the app is running 👍

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