How to Fix Flutter Warning: Your Flutter application is created using an older version

Issue

I am receiving the following warning on running a Flutter App. Kindly guide how to fix it

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

Solution

You can add this to AndroidManifest.xml under activity tag.

<meta-data
         android:name="flutterEmbedding"
         android:value="2" />

This should remove the warning.

Answered By – Darsh Shah

Answer Checked By – Candace Johnson (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published.