how to change android app name in the build gradle file -
i'm creating different flavors using gradle 2 small android apps ,i wanna know if can edit app name on xml file in build.gradle , different flavors .
what mean app name
? application package name in manifest or application name appears in launcher?
if former, do:
android { productflavors { flavor1 { packagename 'com.example.flavor1' } flavor2 { packagename 'com.example.flavor2' } } }
it's possible override app name you'd have provide flavor overlay resource instead.
so create following files:
src/flavor1/res/values/strings.xml
src/flavor2/res/values/strings.xml
and in them override string resource contains app name (the 1 manifest use main activity label through @string/app_name
). can provide different translations needed.
Comments
Post a Comment