Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

APK - Too many locales

The APKs I've been creating with Eclipse lately all are being created with support for all languages even though I only support the default language.

aapt dump looks like this for the locales tag:

locales: '--_--' 'ca' 'da' 'fa' 'ja' 'nb' 'de' 'af' 'bg' 'th' 'fi' 'hi' 'vi' 'sk' 'uk' 'el' 'nl' 'pl' 'sl' 'tl' 'am' 'in' 'ko' 'ro' 'ar' 'fr' 'hr' 'sr' 'tr' 'cs' 'es' 'it' 'lt' 'pt' 'hu' 'ru' 'zu' 'lv' 'sv' 'iw' 'sw' 'fr_CA' 'lo_LA' 'en_GB' 'et_EE' 'ka_GE' 'km_KH' 'zh_HK' 'hy_AM' 'zh_CN' 'en_IN' 'mn_MN' 'pt_BR' 'es_US' 'pt_PT' 'zh_TW' 'ms_MY'

This is also being reflected in the Google Play Publisher Console as upon upload the apk lists as supporting: default + 56 languages.

Some people are saying there's a way around this if you use Android Studio. Unfortunately though, I can't move my project away from Eclipse right now.

My questions:

  1. Is there a way to fix this?
  2. Is it safe to ignore this? (e.g. will keeping this mess up my app availability, store listing, etc.)
like image 469
Sheado Avatar asked Feb 20 '14 00:02

Sheado


1 Answers

With Android Studio and Gradle you could use this in build.gradle:

android {
    defaultConfig {
        resConfigs "en", "de", "es" //Define languages that your app supports.
    }
}
like image 155
Kuitsi Avatar answered Oct 21 '22 02:10

Kuitsi