{"_id":"58aad9dd8f862f250076fa12","project":"54aa7f773b56130b0056c86e","version":{"_id":"58aad9dd8f862f250076f9f4","project":"54aa7f773b56130b0056c86e","__v":2,"createdAt":"2017-02-20T11:58:21.765Z","releaseDate":"2017-02-20T11:58:21.765Z","categories":["58aad9dd8f862f250076f9f5","58aad9dd8f862f250076f9f6","58aad9dd8f862f250076f9f7","58aad9dd8f862f250076f9f8","58aad9dd8f862f250076f9f9","58aad9dd8f862f250076f9fa","58aad9dd8f862f250076f9fb","58ac26b3d460ce2500185d26"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":false,"codename":"Locate","version_clean":"6.0.0","version":"6.0"},"__v":0,"parentDoc":null,"category":{"_id":"58aad9dd8f862f250076f9f8","project":"54aa7f773b56130b0056c86e","version":"58aad9dd8f862f250076f9f4","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-01-05T12:44:00.338Z","from_sync":false,"order":4,"slug":"android-sdk","title":"Android SDK"},"user":"57bc3654b9c7f0220009c77b","updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-12-14T13:07:43.160Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":23,"body":"If you need to reduce the size of your APK you can use APK Splitting.\nAll you need to do is add the following block of code to your app gradle file under android.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"splits {\\n    abi {\\n        enable true\\n        reset()\\n        include 'x86', 'armeabi', 'armeabi-v7a', 'mips'\\n        universalApk false\\n    }\\n}\",\n      \"language\": \"text\"\n    }\n  ]\n}\n[/block]\nWhen releasing an app Android Studio will now build 4 APKs (one for every architecture). This will reduce the size of your app, but you will need to now manage 4 different APKs.\n\nGoogle reccommends to use APK Splitting only after your app size is higher than 100MB.","excerpt":"","slug":"reducing-apk-size","type":"basic","title":"Reducing APK size"}
If you need to reduce the size of your APK you can use APK Splitting. All you need to do is add the following block of code to your app gradle file under android. [block:code] { "codes": [ { "code": "splits {\n abi {\n enable true\n reset()\n include 'x86', 'armeabi', 'armeabi-v7a', 'mips'\n universalApk false\n }\n}", "language": "text" } ] } [/block] When releasing an app Android Studio will now build 4 APKs (one for every architecture). This will reduce the size of your app, but you will need to now manage 4 different APKs. Google reccommends to use APK Splitting only after your app size is higher than 100MB.