I am interested in defining my many tastes of my applications, moreover, in the strings.xml files, and not in build.gradle. Given several options, I would like to simplify the release / debug option:
buildTypes { release { signingConfig signingConfigs.release resValue "string", "app_name", "@string/prod_name" } debug { applicationIdSuffix ".beta" resValue "string", "app_name", "@string/beta_name" }
Then, in each of my custom res / values ββ/strings.xml build files, I define each my own prod_name and beta_name. I also want to use this similar structure to determine vendor authority, etc.
Currently, it will work just fine using the gradle command line, but cannot be recognized by Android Studio.
Android Studio Error:
I find this in the generate.xml file
<string name="app_name">@string/beta_name</string>
This is typical of how one line refers to another. But this time Android Studio gives me this error:
Error:(7, 29) No resource found that matches the given name (at 'app_name' with value '@string/beta_name').
I am using Android Studio 2.1 Preview 5
source share