android - Remove unused localizations from APK -


for android app no localizations (default language only), how can exclude localizations gradle dependencies?

background: app line-of-business app language needs support english. app includes com.google.android.gms:play-services-gcm:7.0.0 push notification support. gcm library includes localizations in 73 languages. i'd rather not included. keeps apk smaller. additionally, if user running non-english language, don't want experience mix of english , localized text.

in build.gradle, add resconfigs limit languages:

android {     defaultconfig {         // other configuration here         resconfigs "en"     } } 

Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -