1

During build process of application, dx.bat in build tools\23.0.3 folder is not executed.

compileSdkVersion 23
buildToolsVersion "23.0.3"

dx.bat used to get executed in older API versions like 19. In that case, can you let me know how classes.dex gets generated without dx.bat getting executed in API version 23.

1 Answers1

1

Version 2.1.0 of Android Gradle plugin includes a feature called Dex In Process, which allows to perform dexing in build process rather than in external processes.

From official documentation:

The feature is enabled by default for projects that have set the Gradle daemon's maximum heap size to at least 2048 MB. You can do this by including the following in your project's gradle.properties file:

org.gradle.jvmargs = -Xmx2048m

To disable dexing-in-process, add the following code to your module-level build.gradle file:

android {
  ...
  dexOptions {
      dexInProcess false
  }
}
Alex Lipov
  • 13,503
  • 5
  • 64
  • 87