At last, here I found the solution.
I added jdk path org.gradle.java.home=C\:\\Program Files\\Java\\jdk1.8.0_144
to gradle.properties
file and did a rebuild. It works now.
More Related Contents:
- com.android.build.transform.api.TransformException
- Is it possible to declare a variable in Gradle usable in Java?
- Error:Execution failed for task ‘:app:dexDebug’. com.android.ide.common.process.ProcessException
- Android Studio 3.1.3 Gradle Sync Error. Could Not Download Gradle-Core.jar
- javax.* cannot be imported in my Android app?
- Gradle – What is a non-zero exit value and how do I fix it?
- Android Library Gradle release JAR
- Failed to resolve: com.google.firebase:firebase-core:16.0.1
- Import Google Play Services library in Android Studio
- UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dex.DexException: Multiple dex files define
- ‘:app:lintVitalRelease’ error when generating signed apk
- Manifest merger failed error
- How can I resolve the error “The minCompileSdk (31) specified in a dependency’s AAR metadata” in native Java or Kotlin? [duplicate]
- How to remove specific permission when build Android app with gradle?
- What does transitive = true in Gradle exactly do (w.r.t. crashlytics)?
- How do I resolve “Duplicate files copied in APK META-INF/*”
- Android studio – Failed to complete gradle execution – error in opening zip file
- java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex in Android Studio 3.0 [closed]
- What does ‘->’ (arrow) mean in gradle’s dependency graph?
- Android studio – Failed to find target android-18
- unrecognized Attribute name MODULE (class com.sun.tools.javac.util.SharedNameTable$NameImpl)
- Gradle sync failed: Unable to find method
- Multiple dex files define /BuildConfig, can’t find the cause:
- Error: Gradle: execution failed for task ‘:app:preDexDebug’
- Error:Execution failed for task ‘:app:packageRelease’. > Unable to compute hash of /../AndroidStudioProjects/../classes.jar
- Failed to resolve: com.google.android.gms:play-services in IntelliJ Idea with gradle
- 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’
- Gradle – download dependencies, lock versions and update dependencies manually
- Error:Could not initialize class com.android.sdklib.repositoryv2.AndroidSdkHandler