Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android sdk will not install - crashes when checking for jdk

Tags:

android

I have downloaded the java jdk, and the android sdk installer, but when I run the android sdk installer, it works fine until the screen where it checks for the java jdk.

It starts to not respond, then after about 15 seconds, a crash message pops up.

Any help with this issue?

like image 219
Liam W Avatar asked May 06 '12 12:05

Liam W


People also ask

How to install Android SDK on your system?

Before installing Android SDK on your system you need to have a Java Development Kit, in short JDK. If you already have a JDK on your system its fine or you can download it from Oracle Website and then install Android SDK.

Why can’t I install the OpenJDK and Android NDK manually?

We had to install the OpenJDK, Android SDK and Android NDK package manually because those provided by Unity are not recognized as valid and thus do not work.

How to update SDK path in Android Studio?

You can update your SDK path by clicking on the Edit option. After that select your SDK path, then click on Apply option, and then click on the OK option. Now sync your project with Gradle files to check that SDK is working fine.

What is JDK in Xamarin Android?

Xamarin.Android uses the Java Development Kit (JDK) to integrate with the Android SDK for building Android apps and running the Android designer. The latest versions of the Android SDK (API 24 and higher) require JDK 8 (1.8) or the Microsoft Mobile OpenJDK Preview.


2 Answers

it may be a bit late, no solution on the internet worked for me and finally out of desperation I deleted the registery key:

HKEY_LOCAL_MACHINE\Software\JavaSoft (not in Wow6432Node)

And it worked! I hope I just saved someone from looking for a solution for two hours like I did.

like image 60
Dima Avatar answered Oct 15 '22 10:10

Dima


The issue for me was that I did not have the 32-bit version of the JDK installed. I only had the 64-bit version.

like image 38
mfrancis107 Avatar answered Oct 15 '22 10:10

mfrancis107