In my current Android project strings the mentioned below are used based on product:
<string name="insert_sd_card" product="nosdcard">"Por favor, inserte una tarjeta SD" </string>
<string name="insert_sd_card" product="default">"Por favor, inserte una tarjeta SD"</string>
When I ran the Gradle build (tried with 0.7, 0.8, 0.9), I'm getting the following error:
*\res\values-es\strings.xml: Error: Found item String/insertsdcard more than one time
Seems like you'll need to use per-flavor based configuration to achieve your needs - https://groups.google.com/forum/#!topic/adt-dev/iKy-umAQpAc
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With