How to enable dex compiler D8(Next-generation Dex Compiler) 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
If you do not have a gradle.properties file simple create it in your's root project directory (or folder) and add this line:
android.enableD8=true