last day (15 days later) » 

4:21 PM
0
A: Android SDK Manager won't start/open

ChuongPhamAndroid currently support up to Java 7 (JDK 1.7). If you use JDK 1.8, it won't work. Also, assuming you're using Java 7, set up JAVA_HOME in Environment Variables by pointing it to C:\Program Files\Java\jdk1.7.0_65 so the Android SDK Manager knows which Java version to use. On Windows 64-bit, E...

 
I have Installed jdk1.7 now, and changed the JAVA_HOME variable in "My Computer > Properties > Advanced system settings > Environment Variables." to "C:\Program Files\Java\jdk1.7.0_67". But it's still not working. I don't know if im using Java 7 or 8, how do I make sure of using Java 7?
 
Did you set the JAVA_HOME variable under the System Variables section? You may need to restart Windows for the changes to take effect.
 
I just it in both "System Variables" and "User variables for $NAME"
 
You don't need to set it up in the User Variables section.
 
Alright, I deleted it again. But do you know whats wrong with my setup? I have the output from running "C:\Android\android-sdk-windows\tools\android.bat" in the question, maybe that holds some information?
 
4:21 PM
The error message is referring to the missing swt.jar found under the Android SDK directory, namely ../android-sdk/tools/lib/x86_64/ directory. Maybe you haven't install or unpack the Android SDK properly.
 
I have the file there :/ and it uses 1620kb, which seems about right? It has nothing to do with the "'xcopy' is not recognized as an internal or external command" ?
 
Yes, that seems about right. It shouldn't complain about the swt.jar file unless the Android SDK is complete. Re-extract all the files and directories from the ADT bundle again, or if you install Android SDK from an executable, then try again.
 
alright
 
Make sure you extracted from the Windows 64-bit ADT bundle.
 
there, re-extracted it
and the same happened
can it be becuase of having java 7 and 8 installed?
 
4:30 PM
What is your current Android SDK directory? For example, D:\android-sdk\.
 
C:\Android\android-sdk-windows
 
No, if you have set JAVA_HOME to point to JDK 7, then Android will use Java 7 regardless of the many Java versions installed on your PC.
Have you set the required read+write permissions to C:\Android\android-sdk-windows directory?
Or, at least change ownership of the directory to your current logged in username.
Without the proper read+write permissions, none the batch files under the C:\Android\android-sdk-windows directory will run successfully.
 
I see that some files are read-only, should I change it so no files are read-only?
 
Yes, do that. At least for the android.bat file.
 
didn't change anything :/
it changes automatically back to read-only :/
I found this: http://stackoverflow.com/a/10493351/2737115
Should I try that?
 
4:39 PM
Yes.
 
nothing changed :/
I have Windows 8.1 64bit *
 
Let me check Google Issues Tracker to see if there's any outstanding bug report for Windows 8.1
 
thanks a lot for your help :)
 
Edit android.bat file and find the lines set java_exe= call lib\find_java.bat (it's split over 2 lines)
Replace the lines with set java_exe="%JAVA_HOME%\java.exe"
Can you try it while I'm searching for any issues with Windows 8.1
 
the same happens, I did try that one before I asked this question :(
"C:\Program Files\Java\jdk1.7.0_67" doesn't have a java.exe file :/
tried to change it to
java_exe="%JAVA_HOME%\bin\java.exe"
and still not working
 
4:52 PM
Tried with this edit: set java_exe="C:\Program Files\Java\jdk1.7.0_65"
or C:\Program Files\Java\jdk1.7.0_67 in your case.
 
nope
 
Okay, go to Start | Control Panel | System | Advanced System Settings | System Properties | Advance | Environment Variables. Then select the "Path" variable under the System Variables section and click Edit. Then append ";C:\Program Files\Java\jdk1.7.0_67\bin" to the end of the path.
 
still not working :/
I could maybe try to install the 32bit jdk?
 
Or, just download this installer_r23.0.2-windows.exe from developer.android.com/sdk/index.html. The executable will configure the necessary paths and requirements for you.
Note: The executable will not include Eclipse. You can download a separate copy of Eclipse Luna at eclipse.org/downloads
 
I'm not using Eclipse ;)
it found jdk 1.8
 
5:03 PM
Okay. No, don't use JDK 1.8. It won't work. It needs JDK 1.7 or 1.6.
 
alright, how do I uninstall JDK 1.8?
should I try to just delete the "jdk1.8.0_05" folder?
 
If you extract JDK 1.8 from a zip file, just delete the directory. If you install it from an executable, go to Start | Control Panel | Program and feature and uninstall it from there.
 
alright, thanks
IT WORKED!
I removed jdk 1.8 and java 8 and tried "installer_r23.0.2-windows.exe" again :)
SDK location is now: C:\Users\Jogvan\AppData\Local\Android\android-sdk
 
No worries
 
I've accepted your answer, I don't know how this chat thingy works, but you can probably update your answer ;)
 
5:12 PM
Okay, try to run Android SDK manager after you finish and see how you go
 
I have it open ;)
 
Okay, just to confirm, it works on Windows 8.1 because you have installed Android with the executable. It's this the part you need me to amend in my answer so others can read it in the future?
Congratulation!
 
and that I removed Java 8 and JDK 1.8
 
Okay cool. I'll do that now. If there's nothing else you want to ask me, then I'll close this chat session. Okay?
 
alright
and thanks a lot for your help :D
 
5:17 PM
No problem. Glad I could help you. ;)
 

last day (15 days later) »