如何运行" android.bat SDK"在微软Windows 7 [英] How to run "android.bat sdk" in Window 7

查看:211
本文介绍了如何运行" android.bat SDK"在微软Windows 7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经下载并安装Android SDK和尝试启动 android.bat SDK 却得到了以下异常:

I have downloaded and installed Android SDK and tried to start android.bat sdk but got following exception:

C:\products\Android\tools>android.bat sdk
Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-win32-3550 or swt-win32 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.widgets.Display.<clinit>(Unknown Source)
        at com.android.sdkmanager.Main.showSdkManagerWindow(Main.java:328)
        at com.android.sdkmanager.Main.doAction(Main.java:302)
        at com.android.sdkmanager.Main.run(Main.java:118)
        at com.android.sdkmanager.Main.main(Main.java:101)

我已经寻找解决方案,很长一段时间,但我不能得到它的工作。难道有什么我要成立第一?

I have searched for solution a long time but I cannot get it to work. Is there anything I have to set up first?

推荐答案

这对我的作品: 添加以下在android.bat文件:

This works for me: Add the following in your android.bat file:

 -Dswt.library.path = {swt.jar folder path} 

这句话之前:

before this phrase:

com.android.manager.Main

运行android.bat

Run android.bat

这篇关于如何运行&QUOT; android.bat SDK&QUOT;在微软Windows 7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆