Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android installation issues

Tags:

java

android

I have been trying to set up my android to begin my development lessons all day without success. I have installed the Java JDK kit and I'm trying to install the android sdk but this is the error I keep getting all day:

"failed to find java version for 'C:\windows\system32\java.exe':[2] The system cannot find the specified file.

The Java version I installed is jdk1.7.0_03. I have gone to the environment variables and added the path to the java file (C:\Program Files\Java\jdk1.7.0_03\bin and C:\Program Files\Java\jdk1.7.0_03\bin\javac) and I still get the same error. The android sdk version I am trying to install is "installer_r18-windows.exe". Can someone help me?

like image 496
Beshel Ikwen Avatar asked Apr 26 '12 18:04

Beshel Ikwen


People also ask

Why is my android app not installing?

The Android app not installed error can be combated after resetting app permissions. Go to Settings > Apps > Reset App Preferences/Reset Application Permissions. After this, third-party software can be installed on your device.

Why my APK is not installing?

Why APK won't install on Android? First, make sure that your Android version supports the APK version you want to install. Also, remove the Play Store version of the app before installing an APK. Don't forget to check the storage space and permission to install apps from unknown sources.

Why do some apps refuse to install?

Corrupted Application- One of the most common reasons for 'App not installed' pop-ups is that of a corrupted file or it may be so that a few of the core files of the apps might have been modified. It is advisable to recheck files while installing and ensure not to download contained files.


2 Answers

The problem is there are two Java files and the installer picks the first one that it finds; The solution, however, is simple:

rename c:\windows\system\java.exe to c:\windows\system\java.exe.orj, then restart the installer, and everything should be fine.

It will now use the version of java.exe installed in Program Files\Java instead which solves the issue.

like image 138
Hasan Veli Soyalan Avatar answered Oct 19 '22 12:10

Hasan Veli Soyalan


I fixed this issue follow these steps:

  1. right click my computer->properties->advanced system settings->advanced tab->click environmental variable

  2. under system variales press new to create and new system variable

  3. give it name JAVA_HOME and give url to folder where java is installed

    e.g C:\Program Files\Java\jdk1.7.0_05 and then re-run sdk

like image 37
mubashir9082 Avatar answered Oct 19 '22 11:10

mubashir9082