Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse android sdk bundle can't open Android SDK Manager

I downloaded new Android and Eclipse bundle in my new notebook (Window 7 64 bit) then I open my old files that I used to work in PC.When I open, it shows some error about version API and that I should fix it in SDK Manager, But when I try to open the SDK Manager it won't run and shows this error in console.

[2555-11-20 10:27:27 - Dex Loader] SecurityException: Unable to find field for dex.jar
[2555-11-20 10:36:02 - SDK Manager] [SDK Manager] Failed to convert path to a short DOS path: C:\Windows\system32\java.exe

How can i fix that ??

like image 741
DrNutsu Avatar asked Nov 20 '12 04:11

DrNutsu


2 Answers

In android_sdk\tools\lib there's a batch-file called find_java.bat. It calls find_java.exe -s to find a list of potential Java locations. Running the exe file like this returns the error I've been seeing:

Failed to convert path to short DOS path: c:\windows\system32\java.exe

-s stands for short. Running it without the -s causes find_java.exe to work, causing find_java.bat to work, causing everything else to work. So the fix was to edit find_java.bat, and remove the -s .

like image 56
Freak Avatar answered Oct 14 '22 19:10

Freak


Try this:

  1. go to adt-bundle-windows\sdk\tools

  2. Right-click on android.bat and say "Run as Administrator"

It will open up the sdk manager.

like image 43
Yugandhar Avatar answered Oct 14 '22 19:10

Yugandhar