Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AndroidManifest.xml uses `android:name="io.flutter.app.FutterApplication"`

Tags:

flutter

After upgrading to Flutter 2.10, I get the following error:

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Warning
──────────────────────────────────────────────────────────────────────────────
Your Flutter application is created using an older version of the Android
embedding. It is being deprecated in favor of Android embedding v2. Follow the
steps at

https://flutter.dev/go/android-project-migration

to migrate your project. You may also pass the --ignore-deprecation flag to
ignore this check and continue with the deprecated v1 embedding. However,
the v1 Android embedding will be removed in future versions of Flutter.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The detected reason was:

  /android/app/src/main/AndroidManifest.xml uses `android:name="io.flutter.app.FutterApplication"`
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

I've already upgraded to Flutter embedding 2. How to solve this error?

like image 943
jon Avatar asked Nov 25 '25 04:11

jon


1 Answers

I was able to solve this by setting android:name to

android:name="${applicationName}" in android/app/src/main/AndroidManifest.xml:

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

Apparently Flutter 2.10 has stricter checks than previous versions.

like image 199
jon Avatar answered Nov 26 '25 19:11

jon



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!