androidandroid-studiogoogle-play-servicesandroid-gradle-plugin

When publishing, 70+ languages are shown as supported but my app only has two


When I publish my app, Google Developer console shows that 70+ languages are supported on my APK but I only have two, English and Spanish (values and values-es folders).

I think this happens since I added Google Play services dependency to my project.

How can this be solved? Why is this happening?


Solution

  • You can use the resource shrinking feature of the new build system to restrict which languages are included in your APK. Specifically:

    android {
        buildTypes {
            release {
                shrinkResources true
            }
        }
        defaultConfig {
            resConfigs "en", "es"
        }
    }