Ad

Exclude Supported Language By External Dependency (aar)

- 1 answer

How to exclude supported languages by an external dependency (.aar)? The external dependency is supporting more languages that my application, and I'm trying to avoid having activities with different languages according if it comes from the external dependency or not.

I've been trying something like this, but without success:

compile ('[email protected]') { exclude("res/values-es") }

Ad

Answer

https://developer.android.com/studio/build/shrink-code#unused-alt-resources

android {
    defaultConfig {
        ...
        resConfigs "en", "fr"
    }
}
Ad
source: stackoverflow.com
Ad