[Last Call] Learn how to a build a cloud-first strategyRegister Now


android studio sdk manager not working

Posted on 2014-09-01
Medium Priority
Last Modified: 2014-09-05
installed android studio, following demo how to on youtube, came across problem where sdk manager button says it is starting but it never comes back

I have the original line:

set java_exe=
 call lib\find_java.bat

in my android.bat file when I run it manually from command line I get the following:

E:\Program Files (x86)\Android\android-studio\sdk\tools>android.bat
Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/swt/widge
        at com.android.sdkmanager.Main.showSdkManagerWindow(Main.java:402)
        at com.android.sdkmanager.Main.doAction(Main.java:390)
        at com.android.sdkmanager.Main.run(Main.java:150)
        at com.android.sdkmanager.Main.main(Main.java:116)
Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.widgets.Display
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        ... 4 more

confused as to why this is happening as well as what is relationship to sdk manager and android studio? are they two separate products? etc? thanks
Question by:smcsmc1
  • 2
LVL 35

Expert Comment

ID: 40300461
Can you try starting eclipse from command line with -clean option?
LVL 11

Accepted Solution

calinutz earned 750 total points
ID: 40305205
First, girionis - it's not Eclipse, it's Android-Studio.
Second, yes, Android SDK Manager and Android-Studio are 2 separate products

So the solution would be to uninstall your Android-Studio and reinstall it, try this link https://developer.android.com/sdk/installing/index.html
LVL 35

Assisted Solution

girionis earned 750 total points
ID: 40305343
@calinutz, Yes you are right. Android studio is not eclipse-based.

@smcsmc1, Android studio is still in beta, so you might get these error messages. Why don't you download the eclipse ADT?

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.
Suggested Courses

826 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question