2

通过 eclipse 或 ./android 启动 Android SDK 管理器时,我收到以下错误:

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 ,这让我通过了白屏,但现在我得到了上面的错误。

4

0 回答 0