I have a library project with several language files, mainly strings. In one app I need to use the library but I want to use only some of the language files (contract reasons).
How can I force Android to disregard the existance of languages when building the app ?
If you are using Android Studio, add a
resConfigs
line to yourbuild.gradle
file, to limit the packaging system to only include your desired languages:See Cyril Mottier's "Putting your APKs on a Diet" post for more.