[Q] Problem with merging DEX files

Search This thread

Skayaar

Member
Nov 1, 2010
22
1
Zagreb
I am currently trying to speed up the ProGuard process for projects using large libraries, such as scala-library.

I have made some solid progess, however, one thing stile evades me.

Here is the scenario I have so far and what is (not) working:

  1. [WORKS] If the application hasn't been built already, ProGuard is ran over everything
  2. [WORKS] If the app has been build already, but some new classes/methods from the big library have been used that havent been used before, run ProGuard over everything but with extra keep options
  3. [FAILS] If the app has been built already, but the new version does not use any other classes than the ones that are already kept by ProGuard
    • Compile the source
    • Dex compiled classes
    • Merge the new, partial dex (app.dex) with current dex used in apk (classes.dex)
    • Package APK

The error I get using logcat is that the class MainActivity does not exist. The copy of my question (including the logcat log) can be found here.

Please help me, XDA. You're my only hope. :p



OK, this can be closed now, I figured it out. The answer is on StackOverflow :D
 
Last edited: