Skip to content

Snappy1

  • Home
  • Android
  • What
  • How
  • Is
  • Can
  • Does
  • Do
  • Why
  • Are
  • Who
  • Toggle search form

[FIXED] java – android studio 4.0 cannot load jdk class

Posted on November 11, 2022 By

Solution 1 :

JAVA_HOME variable value must be the JDK location.
Android supports only Java 7 or 8.
Kindly set the JAVA_HOME to Java 8 (Download if you don’t have it)

Refer these posts for further info:
https://jakewharton.com/androids-java-9-10-11-and-12-support/
https://developer.android.com/studio/write/java8-support

Problem :

I updated Android Studio to latest version (4.0) and i am getting the following error

error

I tried to to follow this question but did not get any proper idea as to what to do.

I tried to set the JAVA_PATH to latest jdk 14 from oracle site but that results in android studio not starting at all, it doesn’t even give any error message, but when i add the path as C:Program FilesJavajre1.8-0_221 i get the error message as seen in the image.

Comments

Comment posted by adoptopenjdk.net/?variant=openjdk8&jvmVariant=hotspot

Thank you, this helped me ! I installed openJDK 8 from this link

READ  [FIXED] java - Retrofit different call and response json bodies
Powered by Inline Related Posts
Android Tags:android-studio, intellij-idea, java

Post navigation

Previous Post: [FIXED] React Native floating animation
Next Post: [FIXED] java – maintain single database between customer and seller of android app

Related Posts

[FIXED] android – How do I handle too early observation of LiveData that depend on firebase auth state to be AUTHENTICATED? Android
[FIXED] android – Can’t show badge at bottomNavigationView Android
[FIXED] java – Leanback transport controls overlay are invisible or behind the video surface? Android
[FIXED] c# – Issue while building Xamarin.android Android
[FIXED] java – How to get the value of our custom AlertDialog? Android
[FIXED] android – What is wrong with the mutableList size with Firebase references Android

Archives

  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022

Categories

  • ¿Cómo
  • ¿Cuál
  • ¿Cuándo
  • ¿Cuántas
  • ¿Cuánto
  • ¿Qué
  • Android
  • Are
  • At
  • C'est
  • Can
  • Comment
  • Did
  • Do
  • Does
  • Est-ce
  • Est-il
  • For
  • Has
  • Hat
  • How
  • In
  • Is
  • Ist
  • Kann
  • Où
  • Pourquoi
  • Quand
  • Quel
  • Quelle
  • Quelles
  • Quels
  • Qui
  • Should
  • Sind
  • Sollte
  • Uncategorized
  • Wann
  • Warum
  • Was
  • Welche
  • Welchen
  • Welcher
  • Welches
  • Were
  • What
  • What's
  • When
  • Where
  • Which
  • Who
  • Who's
  • Why
  • Wie
  • Will
  • Wird
  • Wo
  • Woher
  • you can create a selvedge edge: You can make the edges of garter stitch more smooth by slipping the first stitch of every row.2022-02-04
  • you really only need to know two patterns: garter stitch

Recent Posts

  • Can Vicks humidifier be used without filter?
  • What color is Spanish green?
  • How old is Jamie in The War That Saved My Life?
  • When should I use scalp massager for hair growth?
  • Can I put polyurethane over liming wax?

Recent Comments

No comments to show.

Copyright © 2023 Snappy1.

Powered by PressBook Grid Dark theme