Android Studio + Gradle: define resValue without translation, how can I do that? -
when defining resources resvalue in build.gradle impossible mark them translatable="false". in xml possible.
exemple:
in gradle.properties:
facebook_app_id="xxxxxxxxxxxxx"
in gradle:
resvalue "string", "facebook_app_id", facebook_app_id
when want generate signed apk, there translation error on string because not translated in other language... it's normal, don't want translate it.
gradle doesn't support yet. cannot add similar notranslate in gradle file.
you can add facebook_app_id exclude lint translation check. missingtranslation
Comments
Post a Comment