Fix for Deprecated version of the Android embedding in Flutter

Running the Flutter code after downloading it from GitHub or some other source, sometime gives this warning in Android studio:

Image of the warning

This is because it is using an using an older version of the Android
embedding.

So to solve this one option is to add the following code in AndroidManifest.xml file that is present in android/app/src/main/ folder :

Now your AndroidManifest file will look like this:

Code in Android Manifest

Now Simply Run your Flutter app again, and Voilà, it’s done. Warning will be gone now.

I have mentioned all the code required that I know. If you know other ways , share in the comments for everyone!

Thanks For Reading, Follow Me For More

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store