Ok, I think I got rid of create-asset-dex ant task by putting jarjars
modifications inside setup-libs and using the ruboto tasks: now all
the bundles are treated as equals, and dx --multi-dex will create a
second classes2.dex a soon as it detects more room is needed for
The cool thing is that dx accept an --main-dex-list parameter through
which I can tell him exactly which classes should be put inside the
main classes.dex and which ones can be put on an external
classes2.dex. The classes2.dex is then packaged as jar inside the
apk's assets directory, so LibDexLoader2.java is not needed anymore.
As of now just a modified build.xml is needed, together with a
classlist.txt, in order to rebuild the current 4 month old
jitsi-android. I've just tested xmpp here and it works rather well, it
receives messages and answer audio/video calls, but seems unable to
place calls. Some other source changes are instead needed to use the
current jitsi codebase. Will make a pull request from my jitsi-android
fork on github tonight or sometime this weekend.
2014-06-24 8:32 GMT+02:00 Paweł Domas <email@example.com>:
On Mon, Jun 23, 2014 at 6:41 PM, pierigno <firstname.lastname@example.org> wrote:
thanks Pawel, I see the problem.
Luckly google has provided a new --multi-dex option for dx tool, some
project like ruboto already make use of it: here's a snippet of code
of their makefile
(search for macrodef multi-dex-helper).
I've imported their multi-dex-helper and dex-helper ant tasks and
created a LibDexLoader2.java class to deal with the third classes.dex
file created by them (in addition to jitsi-bundles.dex). I'm now able
to compile and run it on my device, am also able to register an xmpp
account and see incoming chat messaging in notification area, but as
soon as I try to start a chat activity jitsi crashes because of some
NoClassDefFoundError exception. I think I need to get rid of
create-asset-dex ant task and integrate it into the multi-dex-helper
Thank you for your efforts ! We will have a look and try to integrate.
It might take from few days to a week.
dev mailing list
Unsubscribe instructions and other list options: