Please make changes as per below to resolve this error.
Install Java SDK version: 14 or above.
JDK Download link: https://www.oracle.com/java/technologies/javase-jdk14-downloads.html
In
gradle-wrapper.properties
please use grade version 6.3 or above.
For e.g:distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-all.zip
More Related Contents:
- Android: Why doesn’t my Service start?
- How to set margin for ImageView in pixels in android java?
- How to redirect multiple types of users to their respective Activities?
- Execution Failed for task :app:compileDebugJavaWithJavac in Android Studio
- Android Studio 3.1.3 Gradle Sync Error. Could Not Download Gradle-Core.jar
- 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
- Compilation failed to complete:Program type already present: com.google.android.gms.internal.measurement.zzabn
- Android Studio debugger highlights the wrong lines
- Error: Unable to run mksdcard SDK tool
- Import Google Play Services library in Android Studio
- Error launching Android Studio: Failed to create JVM: error code-6
- Android Studio cannot resolve symbol but code executes correctly
- Android Studio: failed to complete gradle execution, cause is empty
- :app:dexDebug ExecException finished with non-zero exit value 2
- “Hello world” Android app with as few files as possible, no IDE, and text editor only
- No resource identifier found for attribute ‘layout_behavior’ in package
- Android Studio Convert ISO string to “America/New_York” when adding to event to calendar
- Failed to import new Gradle project: failed to find Build Tools revision *.0.0
- How to combine one android studio project into another android studio project
- tools.jar seems to be not in Android Studio classpath on Windows 8
- MediaSessionCompat:Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent
- Error:Timeout waiting to lock buildscript class cache for build file when change minSdkVersion
- Android Studio layout editor cannot render custom views
- Error: Could not find com.google.gms:google-services:1.0. when adding google service plugin in build.gradle in android studio
- Importing Facebook library in Android Studio: Could not find property ‘ANDROID_BUILD_SDK_VERSION’
- Unity3D and Android Studio Integration
- Class must either be declared abstract or implement abstract method error
- Android Studio Error “Unsupported class file major version 61”
- Error:Could not initialize class com.android.sdklib.repositoryv2.AndroidSdkHandler
- Recover file in Android Studio?