• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps cant install SDK

system32

Lurker
I downloaded the Android SDK and when I run SDK Manager a command prompt windows shows up then goes away really fast. Why is this? I am running windows 7 x64.

Thanks:)
 
If you run the program from the command prompt rather than through the Windows Explorer, does it give you any more useful messages?
 
This is what I get:

Exception in thread "main" java.lang.UnsupportedClassVersionError: com/android/a
rchquery/Main (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
[INFO] Starting Android SDK and AVD Manager
Invalid path
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
ERROR: SWT folder '' does not exist.
Please set ANDROID_SWT to point to the folder containing swt.jar for your platfo
rm.
 
Hello,

You can directly Execute the android (sdk setup.exe) to simply run the pre-defined applications.

If u want to develop your own applications and run on the emulator you may take the help of eclipse, where they have given a excellent environment setup.

So better setup the environment for Android Applications using Eclipse with Android SDK.

Here is my blog where i have written a procedure to setup environment for Android
Just In Time: Android Environment setup with Eclispe3.5 Galileo

Let me know if any issues


Thanks
Vinay Guntaka
 
I am having the error as stated above.
I have Eclipse but I can't use anything until the SDK is updated, which I can't do.
No matter how many times and different ways I set the ANDROID_SWT path, I get the path error.
 
During initial installation, the SDK Manager will not open.
After attempting a command line start with android.bat update sdk, I found a path error.

My Android SDK is in C:\Applications\Software Development\android-sdk\

I have the following path set:
ANDROID_SWT=C:\Applications\Software Development\android-sdk\tools\lib\x86_64

I also tried
ANDROID_SWT=C:\Applications\Software Development\android-sdk\tools\

But I still get this error:

Exception in thread "main" java.lang.UnsupportedClassVersionError: com/android/archquery/Main (Unsupported major.minor versio
n 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
[INFO] Starting Android SDK and AVD Manager
Invalid path
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
ERROR: SWT folder 'C:\Applications\Software Development\android-sdk\tools\lib\x86_64' does not exist.
Please set ANDROID_SWT to point to the folder containing swt.jar for your platform.
 
Hi kingram,

This is the issue with you JDK although the error message seems to be something else. Its very deceptive.

Ensure you have min of JDK 5.0 and put this JAVA_HOME/bin in the PATH in front eg:

set PATH = %JDK_HOME%\bin;%PATH%

and then you can get SDK Manager up and running.

Regards
Pavan
 
Can you explain what you are trying to say in detail! I'm also getting the same error!

Just remove any references to old java version in your PATH environment, or set first for new version to the begining.
For ex. if you have Oracle 9i installed, you can have reference to JDK 1.3 for oracle installer.
 
Back
Top Bottom