In gradle.properties
add android.enableD8=true
This should work.
Please note that there is a known bug when you export and upload the apk to play store with d8 enable. The app will not run on some devices when downloaded from play store.
More Related Contents:
- Execution Failed for task :app:compileDebugJavaWithJavac in Android Studio
- Android Studio 3.1.3 Gradle Sync Error. Could Not Download Gradle-Core.jar
- Gradle – What is a non-zero exit value and how do I fix it?
- Import Google Play Services library in Android Studio
- UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dex.DexException: Multiple dex files define
- Manifest merger failed error
- :app:dexDebug ExecException finished with non-zero exit value 2
- Android studio – Failed to complete gradle execution – error in opening zip file
- Android studio – Failed to find target android-18
- Gradle sync failed: Unable to find method
- Failed to import new Gradle project: failed to find Build Tools revision *.0.0
- Android Studio Build gradle OutOfMemoryError
- Error:Timeout waiting to lock buildscript class cache for build file when change minSdkVersion
- Importing Facebook library in Android Studio: Could not find property ‘ANDROID_BUILD_SDK_VERSION’
- Error:Could not initialize class com.android.sdklib.repositoryv2.AndroidSdkHandler
- Android: Why doesn’t my Service start?
- This app is not authorized to use Firebase Authentication.Please verify that the correct package name and SHA-1 are configured in the Firebase Console
- How to set -source 1.7 in Android Studio and Gradle
- javax.* cannot be imported in my Android app?
- Failed to resolve: com.google.firebase:firebase-core:16.0.1
- ‘:app:lintVitalRelease’ error when generating signed apk
- Android Studio cannot resolve symbol but code executes correctly
- How to remove specific permission when build Android app with gradle?
- What does transitive = true in Gradle exactly do (w.r.t. crashlytics)?
- java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex in Android Studio 3.0 [closed]
- “Hello world” Android app with as few files as possible, no IDE, and text editor only
- How to combine one android studio project into another android studio project
- Unable to install Android Studio in Ubuntu [duplicate]
- Got “unsupported class file version 52.0” after including a module to a project
- Bumblebee Android studio Plugin [id: ‘com.android.application’, version: ‘7.1.0’, apply: false] was not found in any of the following sources: