Eclipse android sdk bundle can't open Android SDK Manager
Solution 1
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
.
Solution 2
Try this:
go to adt-bundle-windows\sdk\tools
Right-click on
android.bat
and say "Run as Administrator"
It will open up the sdk manager.
DrNutsu
Updated on June 04, 2022Comments
-
DrNutsu almost 2 years
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 ??
-
DrNutsu over 11 yearsThanks that work!! edit the find_java file and remove in " for /f %%a in ('%~dps0\find_java.exe') do set java_exe=%%a "
-
nuala over 11 yearsSource? howto-gethelp.com/2012/11/…
-
Nam G VU over 10 yearsThis doesn't work for me. The other answer from @Yugandhar works i.e. running the
android.bat
file -
Freak over 10 years@NamG.VU so thats why you voted it down? Btw this is ridiculous as it worked for many of other people.No solution work in every situation and here we just give the most probable right answer (not 100% ACCURATE) and this thing is called troubleshooting.BTW you have rights of down voting so i say nothing.You are open to put your opinion.thanks
-
Freak over 10 years@NamG.VU it doesn't mean that you should down vote answer like this who already have such upvotes.
-
Admin over 8 yearsI tryed all of that im really lost
-
Admin over 8 yearsI've been doing a lot of reading and copping for like a week now I tryed unistalling the bundle several times and java I put the java in root several times im really lost please any thing .