为什么android sdk安装失败?

发布于 2024-10-31 15:29:40 字数 1458 浏览 1 评论 0原文

我正在使用以下说明设置我的 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。有什么想法为什么会失败吗?

I am setting up my android development environment using these instructions:
http://developer.android.com/sdk/installing.html

When I get to step 4, and type 'android' I get the following error:

/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]

It's like the android sdk is not aware of the ecplise libraries. I have downloaded and installed eclipse. Any ideas why this is failing?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

吖咩 2024-11-07 15:29:40

你下载了错误的sdk。确保下载 Mac OS X (intel) SDK。

You downloaded the wrong sdk. Make sure to download the Mac OS X (intel) SDK.

追星践月 2024-11-07 15:29:40

从您粘贴的输出中:

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

From your pasted output:

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

are you trying to use the Linux SDK under OS X? You can get the OS X SDK from the download page here: http://d.android.com/sdk/index.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文