close

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

Hello Guys, How Are You all? Hope you all are fine. Today I Just cloned my GitHub flutter project But I am facing following error: Warning: Your Flutter application is created using an older version of the Android embedding. It’s being deprecated in favor of Android embedding v2. In this tutorial I am going to explain you about this error and all possible solution for this error.

How Warning: Your Flutter application is created using an older version of the Android embedding. It’s being deprecated in favor of Android embedding v2 Error Occurs?

I am trying to clone my GitHub Flutter Project But Whenever I am trying to run my project I am facing some android embedding deprecation error.

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

How To Solve Warning: Your Flutter application is created using an older version of the Android embedding. It’s being deprecated in favor of Android embedding v2?

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

    To Solve Warning: Your Flutter application is created using an older version of the Android embedding. It's being deprecated in favor of Android embedding v2 just try to add android:name in your AndroidManifest.xml under activity tag. Here is My AndroidManifest.xml file example: android:name=”flutterEmbedding” Now, re-run your app and your error must be fixed now.

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

    To Solve Warning: Your Flutter application is created using an older version of the Android embedding. It's being deprecated in favor of Android embedding v2 This Error May be happened cause of You are using flutter latest version and your flutter project might have older version that's why this error may happend. All You need to do is Just open your AndroidMenifest.xml file and Just Replace android:name under application tag. Just Like Below: android:name=”io.flutter.app.FlutterApplication” And Replace With this line: android:name=”${applicationName}” Now, Just try to re-run your app again and now your error must be solved. Thank You.

Solution 1: Replace android:name under application tag

This Error May be happened cause of You are using flutter latest version and your flutter project might have older version that’s why this error may happend.

All You need to do is Just open your AndroidMenifest.xml file and Just Replace android:name under application tag. Just Like Below.

<application
    android:name="io.flutter.app.FlutterApplication"
    ...

And Replace With this line.

<application
    android:name="${applicationName}"

Now, Just try to re-run your app again and now your error must be solved. Thank You.

Solution 2: add android:name in menifest

If Solution 1 not Worked then just try to add android:name in your AndroidManifest.xml under activity tag. Here is My AndroidManifest.xml file example.

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

Now, re-run your app and your error must be fixed now.

Solution 3: Regenerate Android Folder

Note: If You are not Using Any Native Android Code And Script Then Follow This Solution.

First Of all Delete Android and iOS folder from your project and Then run flutter create . command in your project and that will re-generate Android and iOS folder with latest Files.

flutter create .

Hope, Now your error must be fixed.

Conclusion

So This is all About to solve this error. Hope Above Three Solution is Enough to resolve your error. Please Let us know which solution worked For You ? And If Your Error Not Resolved then Just Comment below Our Team will Definitely Help You. Also Comment below your suggestion. Thank You.

Also Read

Leave a Comment