Is it possible to take *.so libraries off to expansion files?

546 views Asked by At

I faced the task of reducing the size of .apk file of my android app. My apk size is more then 100MB now and tentatively it will grow. So I consider android app bundle as a temporary solution. .so libraries take the most space in apk and I'd like to take them off to expansion files if it is possible. Does anybody have such experience, and what can you advice to learn to solve this problem?

1

There are 1 answers

3
Brian Hoang On

Reduce the size of your app by moving '.so' files to over-the-air. Follow this link

But this violates the Google Policy

You should:

  • Remove unused resources(image, layout, lib/dependency)

  • Turn on shirk resource on build.gradle

  • Moving something to OTA

  • Build the App bundle instead of APK