I have a project based on the XWalkView library.

In my case, it uploads a certain site, but the problem is that this library weighs a lot. The boot apk weighs under 45mb, although in fact there is nothing there.

I read on the forums that this apk can be somehow divided into two parts: one for ARM, the second for x86, something like that, in one word for different platforms. Then you can somehow download it all into PlayMarket and already when the user wants to download this program, the Play Market itself chooses a specific apk for its platform.

Actually the question is: how to parse apk into two parts and how to actually fill them in the Play Market so that the Play Market chooses which apk it needs?

  • I’m not really XWalkView in XWalkView , but to reduce the size of apk in the way you want, you need to have non-universal resources in your project. For example, images for different screen resolutions, or binaries for different platforms. Then you can divide it into different apk for different platforms. But think, and if someone wants to throw off the application to a friend through some shareit ? And it will not start there or there will be some jambs. I would not do that, but I would try to cut out all the unnecessary from the project . You just seem to be in the wrong place trying to optimize weight. - selya
  • @selya if you remove this library, the size will immediately fall to 2-5mb - shcherbuk
  • If I understand correctly, this is something like a web environment. Crosswalk project as like? look it up . 1 minute search in google. They explain that this bibla greatly increases the size of the apk. And there is a lite version. And something about the compilation yet. Maybe it will be useful - selya

1 answer 1

Yes, you can, here’s a detailed article on how to do this, I really never did. But 45M is not very large, I would not do it for the sake of beauty only - so what is 45M? This is not 45G, many have a 100Mb / s channel for a long time, even in the provinces.

Alternative rational proposal - take the source XWalkWiew , remove from there all that you do not need to install in the project and build ...

  • one
    The maximum size of apk is 100MB, so I would not advise so easily to scatter megabytes - andreymal
  • In general, the answers-links are not welcome on Stack Overflow - andreymal
  • one
    @EugeneBartosh my mother used to say in childhood that the penny was saving the ruble. And the answer should be (as I think) at least a little expanded, so that it is clear from him whether this is what the person wanted. - selya
  • 2
    @EugeneBartosh and I have only ~ 200MB of free space on my phone. Because of this, I periodically simply delete the largest applications regardless of their usefulness;) - andreymal
  • 2
    @andreymal and I almost do the same here. Just before downloading) If the application is large, but there’s no functionality in it, I just don’t install it. If the developer could not make a normal size, then how could he make a normal application as a whole?) - selya