Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does the ${applicationName} in flutter AndroidManifest.xml means?

The AndroidManifext.xml has this code:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.skeleton">
   <application
        android:label="skeleton"
        android:name="${applicationName}"
        android:icon="@mipmap/ic_launcher">

On what real value the applicationName is interpolated?

like image 964
BambinoUA Avatar asked Dec 05 '25 14:12

BambinoUA


1 Answers

This value is set by the Flutter Gradle plugin.

It can have 2 value :

If you have multidex enabled and your app has a minSdk less than 20, this value will be io.flutter.app.FlutterMultiDexApplication.

Else, it will be android.app.Application.

You can override this value by setting the base-application-name property (in the gradle.properties of your android folder for example).

Source -
flutter.gradle
flutter.gradle.kts

Remember that you can always inspect the resulting APK (in build/app/outputs/flutter-apk) to see what value is in the final Manifest. Or you can just read the merged manifest in build/app/intermediates/merged_manifests/debug/AndroidManifest.xml.

like image 168
pdegand59 Avatar answered Dec 07 '25 03:12

pdegand59



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!