When defining resources with resValue in build.gradle it is impossible to mark them as translatable="false". In XML this is possible.
Exemple:
In gradle.properties:
FACEBOOK_APP_ID="XXXXXXXXXXXXX"
In gradle:
resValue "string", "FACEBOOK_APP_ID", FACEBOOK_APP_ID
When I want to generate signed APK, there is a translation error on this string because is not translated in other language... but it's normal, I don't want to translate it.
compileOnly is the replacement — the equivalent configuration that is being deprecated is provided .
Gradle doesn't support this yet. You cannot add anything similar to notranslate in your gradle file.
You can add FACEBOOK_APP_ID to exclude lint translation check. MissingTranslation
https://code.google.com/p/android/issues/detail?id=152198
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