Modify dx.jar to enable incremental build by default
- Create directory adt-bundle-linux-x86_64/sdk/platform-tools/lib/incremental
- Download
com.android.dx.command.dexer.Mainclass - Set default value of
incrementalfield totrue
1 2 3 4 | |
- Compile the class and repack
dx.jar
1 2 | |
Disable deleting classes.dex in Intellij Idea
In the AndroidDexBuilder class remove outFile.delete() statement and rebuild android-jps-plugin.jar.
The simplest way to do it replace delete string with exists in the AndroidDexBuild class
in the idea-$VERSION/plugins/android/lib/jps/android-jps-plugin.jar archive.