Arutha
Arutha

Reputation: 26488

android link dex files

How I can create apk application from two different dex file ? I did'nt find any way to link many dex files with the android tools.

Upvotes: 2

Views: 693

Answers (2)

Maks
Maks

Reputation: 7935

This is a known and growing problem as android apps get larger and depend on more and larger libraries.

Since this question was asked, a bug for being able to merge dex files, which would be one possible solution to this issue has been filed in the android bugtracker.

The bug is however still open after 1.5 years so no immediate solution for now.

Upvotes: 1

CommonsWare
CommonsWare

Reputation: 1007322

I am not certain that it is possible. Moreover, it should not be necessary -- I would think that there are perhaps other ways of solving whatever problem you have.

For example, if you are trying to make some reusable code, just turn that reusable code into a JAR and add that JAR to the other application's libs/ directory. You can see plenty of examples of this with the CWAC projects on my github page. All of those generate a JAR file (via the ant jar task) that can then be used by other Android applications.

Upvotes: 1

Related Questions