Strange app name after launching debug build type

88 Views Asked by At

I"ve added debug build type my app .gradle

buildTypes {
        getByName("debug") {
            applicationIdSuffix = ".debug"
            isDebuggable = true
            versionNameSuffix = " Debug"
            resValue("string", "app_name", "Name Debug")
        }
        getByName("release") {
            isMinifyEnabled = true
            resValue("string", "app_name", "Name")
            proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro")

        }
    }

I've removed app_name from my strings.xml but when I install my app on phone the name is "View Pager Dots indicator" what is really strange.

My manifest:

 <application
        android:name=".StartApp"
        android:allowBackup="true"
        android:icon="@mipmap/ic_app"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_app_round"
        android:supportsRtl="true"
        android:theme="@style/Theme.MyApp"
        tools:ignore="AllowBackup, LockedOrientationActivity">
0

There are 0 best solutions below