为什么android sdk无法安装?

时间:2011-04-11 20:05:27

标签: android macos android-sdk-2.3

我正在使用这些说明设置我的android开发环境: http://developer.android.com/sdk/installing.html

当我进入第4步并输入'android'时,我收到以下错误:

/Users/user1/programming/android\ development/android-sdk-linux_x86/tools/android ; exit;
user1-Macbook-Pro:~ user1$ /Users/user1/programming/android\ development/android-sdk-linux_x86/tools/android ; exit;
Starting Android SDK and AVD Manager
No command line parameters provided, launching UI.
See 'android --help' for operations from the command line.
Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-gtk-3550 or swt-gtk in swt.library.path, java.library.path or the jar file
    at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
    at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
    at org.eclipse.swt.internal.C.<clinit>(Unknown Source)
    at org.eclipse.swt.internal.Converter.wcsToMbcs(Unknown Source)
    at org.eclipse.swt.internal.Converter.wcsToMbcs(Unknown Source)
    at org.eclipse.swt.widgets.Display.<clinit>(Unknown Source)
    at com.android.sdkmanager.Main.showMainWindow(Main.java:297)
    at com.android.sdkmanager.Main.doAction(Main.java:281)
    at com.android.sdkmanager.Main.run(Main.java:99)
    at com.android.sdkmanager.Main.main(Main.java:88)
logout

[Process completed]

这就像android sdk不知道ecplise库。我已经下载并安装了eclipse。任何想法为什么会失败?

2 个答案:

答案 0 :(得分:4)

你下载了错误的sdk。请务必下载Mac OS X(intel)SDK。

答案 1 :(得分:2)

从您的粘贴输出:

user1-Macbook-Pro:~ user1$ /Users/user1/programming/android\ development/android-sdk-linux_x86/tools/android ; exit;

您是否尝试在OS X下使用Linux SDK?您可以从下载页面获取OS X SDK:http://d.android.com/sdk/index.html