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

https://code.google.com/p/android/issues/detail?id=152198


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -