Eclipse Kepler Debian 7.6 Android SDK R23.0.2(〜/ android / tools / android)
通过命令行配置AVD后
~/android/tools/android avd
当我尝试启动它时,程序退出,提供日志以及AVD未启动。
java.awt.HeadlessException
at sun.awt.HeadlessToolkit.getScreenResolution(HeadlessToolkit.java:224)
at com.android.sdkuilib.internal.widgets.AvdStartDialog.getMonitorDpi(AvdStartDialog.java:441)
at com.android.sdkuilib.internal.widgets.AvdStartDialog.createDialogContent(AvdStartDialog.java:189)
at com.android.sdkuilib.ui.GridDialog.createDialogArea(GridDialog.java:76)
at org.eclipse.jface.dialogs.Dialog.createContents(Dialog.java:760)
at org.eclipse.jface.window.Window.create(Window.java:431)
at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
at org.eclipse.jface.window.Window.open(Window.java:790)
at com.android.sdkuilib.internal.widgets.AvdSelector.onStart(AvdSelector.java:1116)
at com.android.sdkuilib.internal.widgets.AvdSelector.access$200(AvdSelector.java:86)
at com.android.sdkuilib.internal.widgets.AvdSelector$3.widgetSelected(AvdSelector.java:285)
at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at com.android.sdkuilib.internal.repository.ui.AvdManagerWindowImpl1.open(AvdManagerWindowImpl1.java:146)
at com.android.sdkuilib.repository.AvdManagerWindow.open(AvdManagerWindow.java:94)
at com.android.sdkmanager.Main.showAvdManagerWindow(Main.java:437)
at com.android.sdkmanager.Main.doAction(Main.java:379)
at com.android.sdkmanager.Main.run(Main.java:150)
at com.android.sdkmanager.Main.main(Main.java:116)
当然它在Eclipse IDE中效果不好,似乎根本没有调用(控制台中没有日志)。
有什么想法吗?
答案 0 :(得分:0)
我有同样的问题,在我的情况下,一些包丢失了。 我按照官方网站的步骤进行了Ubuntu故障排除并修复了问题 http://developer.android.com/sdk/installing/index.html?pkg=tools
如果在开发计算机上运行64位分发,则需要先安装其他软件包。对于Ubuntu 13.10(Saucy Salamander)及以上版本,请使用apt-get安装libncurses5:i386
,libstdc++6:i386
和zlib1g:i386
软件包:
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libncurses5:i386 libstdc++6:i386 zlib1g:i386 "