Published on

How to change Android app icon name programmatically based on the build type?


How to change icon name on Android based on build type? Debug vs Release?

The following is shown for debug mode. Change debug to release in the paths to make the changes for release build variant.

Define strings.xml at the following path


Add the following to that file. Dev being the name of the icon we want

<!-- ./android/app/src/debug/res/values/strings.xml -->
<?xml version="1.0" encoding="utf-8"?>
    <string name="app_name">DEV</string>

Update to android:label="@string/app_name" inside of ./android/app/src/main/AndroidManifest.xml.

Inside the opening <activity> tag.

<!-- ./android/app/src/main/AndroidManifest.xml -->
<manifest xmlns:android="" package="com.example.rse">

Sync Project files with Gradle files to pick up new changes