how to change android app name in the build gradle file

后端 未结 5 1651
没有蜡笔的小新
没有蜡笔的小新 2021-01-03 07:28

I\'m creating different flavors using gradle for 2 small android apps ,i wanna just know if i can edit app name on the xml file in the build.gradle , for my different flav

5条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-03 08:05

    This answer is based on Tom's, it works the best and you can work with gradle.properties to allow further animation in build process.

    In build.gradle:

    debug {
      resValue 'string', 'app_name', APP_NAME
    }
    

    In gradle.properties:

    APP_NAME="Template 1"
    

提交回复
热议问题