londonappbrewery/destini-challenge-starting

Your Flutter application is created using an older version of the Android embedding. It's being deprecated in favor of Android embedding v2.

Opened this issue · 3 comments

Your Flutter application is created using an older version of the Android embedding. It's being deprecated in favor of Android embedding v2.
I am experiencing this issue constantly while making every app and it's getting very frustrating to fix it every time and even then it doesn't work properly.
Please help Angela!!

Hi gaurav, I have encountered the same problem. And I didn't quite understand the link provided https://flutter.dev/go/android-project-migration .

So I did some research and found one video extremly helpful, on a second thought, It's demo of the link flutter teams provided except for one missing part concerning normalbackground which I don't understand yet, but it work.

Solution1: Try to follow the video https://www.youtube.com/watch?v=nqY2kdEED5w

Solution2: Just open a new flutter object yourself with your IDE and add the resources such as pubspec.yaml, images, android/app/src/main/res/mipmap-hdpi, code in main.dart etc, this will help too.

this should fix it:

Go to app/src/main/res/AndroidManifest.xml

change this
<application
android:icon="@mipmap/ic_launcher"
android:name="io.flutter.app.FlutterApplication"
android:label="PassesBox"
...

To this:
<application
android:icon="@mipmap/ic_launcher"
android:name="io.flutter.embedding.android.FlutterActivity"
android:label="PassesBox"
...

I created a new repository that fixes the legacy issues in the original one and hopefully let's you just get started:

https://github.com/simplydt/destiny_challenge_2022