由于SWT无效的启动线程,无法启动Android SDK Manager

时间:2013-01-27 01:58:22

标签: android eclipse swt

启动Android SDK Manager时,无论是通过eclipse还是通过./android,我都会收到以下错误:

hamiltont$ android 
***WARNING: Display must be created on main thread due to Cocoa restrictions.
org.eclipse.swt.SWTException: Invalid thread access
    at org.eclipse.swt.SWT.error(Unknown Source)
    at org.eclipse.swt.SWT.error(Unknown Source)
    at org.eclipse.swt.SWT.error(Unknown Source)
    at org.eclipse.swt.widgets.Display.error(Unknown Source)
    at org.eclipse.swt.widgets.Display.createDisplay(Unknown Source)
    at org.eclipse.swt.widgets.Display.create(Unknown Source)
    at org.eclipse.swt.graphics.Device.<init>(Unknown Source)
    at org.eclipse.swt.widgets.Display.<init>(Unknown Source)
    at org.eclipse.swt.widgets.Display.<init>(Unknown Source)
    at org.eclipse.swt.widgets.Display.getDefault(Unknown Source)
    at org.eclipse.swt.widgets.Shell.<init>(Unknown Source)
    at org.eclipse.swt.widgets.Shell.<init>(Unknown Source)
    at com.android.sdkuilib.internal.repository.ui.SdkUpdaterWindowImpl2.createShell(SdkUpdaterWindowImpl2.java:168)
    at com.android.sdkuilib.internal.repository.ui.SdkUpdaterWindowImpl2.open(SdkUpdaterWindowImpl2.java:137)
    at com.android.sdkuilib.repository.SdkUpdaterWindow.open(SdkUpdaterWindow.java:110)
    at com.android.sdkmanager.Main.showSdkManagerWindow(Main.java:344)
    at com.android.sdkmanager.Main.doAction(Main.java:322)
    at com.android.sdkmanager.Main.run(Main.java:119)
    at com.android.sdkmanager.Main.main(Main.java:102)

搜索告诉我,我需要提供-XstartOnFirstThread,但我对此没有任何控制权。我已经尝试删除所有“.snap”文件,删除整个工作区目录等。但是,我不认为这是问题。这是Android ADT的全新安装。原来的x86_64 swt.jar只显示一个空白的白色屏幕,所以我从http://www.eclipse.org/swt/下载了swt.jar,它让我通过白屏,但现在我得到了上面的错误。

0 个答案:

没有答案