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?
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