I had the same issue, but I have resolved it the next:
1) Install jdk1.8…
2) In AndroidStudio File->Project Structure->SDK Location, select your directory where the JDK is located, by default Studio uses embedded JDK but for some reason it produces error=216.
3) Click Ok.
More Related Contents:
- cannot resolve symbol ‘java.time.LocalDate’ error in android studio
- android studio app running on api level 23 but crashes on 19
- Android: Why doesn’t my Service start?
- How to set margin for ImageView in pixels in android java?
- Attempt to invoke virtual method ‘void android.widget.TextView.setText(java.lang.CharSequence)’ on a null object reference – Bundle putExtra [duplicate]
- Is it possible to use Java 8 for Android development?
- How to make a .jar out from an Android Studio project
- 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
- UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dex.DexException: Multiple dex files define
- Android Studio – No JVM Installation found
- Error launching Android Studio: Failed to create JVM: error code-6
- Android Studio error: “Manifest merger failed: Apps targeting Android 12” [duplicate]
- Manifest merger failed error
- Error:Execution failed for task ‘:app:processDebugResources’. > java.io.IOException: Could not delete folder “” in android studio
- Android Studio: failed to complete gradle execution, cause is empty
- Android studio – Failed to complete gradle execution – error in opening zip file
- Android studio – Failed to find target android-18
- Problems importing project into Android Studio regarding ActionBarSherlock
- No resource identifier found for attribute ‘layout_behavior’ in package
- Gradle sync failed: Unable to find method
- How to write NDEF records to NFC tag?
- Error:Timeout waiting to lock buildscript class cache for build file when change minSdkVersion
- Exception in thread “main” java.lang.NoClassDefFoundError: junit/textui/ResultPrinter
- Error: Could not find com.google.gms:google-services:1.0. when adding google service plugin in build.gradle in android studio
- How to enable ProGuard obfuscation in Android Studio?
- Got “unsupported class file version 52.0” after including a module to a project
- Unity3D and Android Studio Integration
- How can I import java.awt.image.BufferedImage in Android Studio
- Error:Could not initialize class com.android.sdklib.repositoryv2.AndroidSdkHandler