How to enable dex compiler D8(Next-generation Dex Compiler) in android studio

pRaNaY picture pRaNaY · Aug 12, 2017 · Viewed 8.7k times · Source

With the release of Android Studio 3.0 Beta release, the android studio provides next-generation dex compiler, D8 to compile code and build android APK. Currently, D8 is available for preview.

Check more details: https://android-developers.googleblog.com/2017/08/next-generation-dex-compiler-now-in.html

How to enable build using D8 in android studio?

Answer

pRaNaY picture pRaNaY · Aug 12, 2017

To enable D8 for your Android Studio 3.0 Beta, you can add following line in your project's gradle.properties file:

android.enableD8=true