为什么android sdk安装失败?
我正在使用以下说明设置我的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你下载了错误的sdk。确保下载 Mac OS X (intel) SDK。
You downloaded the wrong sdk. Make sure to download the Mac OS X (intel) SDK.
从您粘贴的输出中:
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