我正在Mac OS X上安装Android SDK.按照Android开发网站上的说明,我已经下载了SDK,并修改了.bash_profile使其包含路径.下一步是使用Android SDK和AVD Manager实际下载平台.
但是,当我使用Manager安装平台时,在终端中出现以下错误.我在Eclipse和Android论坛中到处寻找类似的问题,但尚未发现任何东西.环境中还有其他损坏的地方,需要修理吗?关于我应该看什么的任何建议?
编辑:我在Java版本1.6-u17上.刚刚将OS X更新为10.6.3.
java.lang.NullPointerException
at org.eclipse.swt.graphics.Device.getFontList(Unknown Source)
at org.eclipse.jface.resource.FontRegistry.filterData(FontRegistry.java:456)
at org.eclipse.jface.resource.FontRegistry.createFont(FontRegistry.java:490)
at org.eclipse.jface.resource.FontRegistry.defaultFontRecord(FontRegistry.java:551)
at org.eclipse.jface.resource.FontRegistry.defaultFontData(FontRegistry.java:563)
at org.eclipse.jface.resource.FontRegistry.getFontData(FontRegistry.java:579)
at org.eclipse.jface.dialogs.Dialog.dialogFontIsDefault(Dialog.java:1077)
at org.eclipse.jface.dialogs.Dialog.applyDialogFont(Dialog.java:998)
at org.eclipse.jface.dialogs.Dialog.createContents(Dialog.java:756)
at org.eclipse.jface.window.Window.create(Window.java:431)
at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
at com.android.sdkuilib.internal.repository.UpdateChooserDialog.create(UpdateChooserDialog.java:280)
at org.eclipse.jface.window.Window.open(Window.java:790)
at com.android.sdkuilib.internal.repository.UpdaterData.updateOrInstallAll(UpdaterData.java:502)
at com.android.sdkuilib.internal.repository.RemotePackagesPage.onInstallSelectedArchives(RemotePackagesPage.java:323)
at com.android.sdkuilib.internal.repository.RemotePackagesPage.access$600(RemotePackagesPage.java:54)
at com.android.sdkuilib.internal.repository.RemotePackagesPage$7.widgetSelected(RemotePackagesPage.java:168)
at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.notifyListeners(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.UpdaterWindowImpl.open(UpdaterWindowImpl.java:104)
at com.android.sdkuilib.repository.UpdaterWindow.open(UpdaterWindow.java:110)
at com.android.sdkmanager.Main.showMainWindow(Main.java:281)
at com.android.sdkmanager.Main.doAction(Main.java:247)
at com.android.sdkmanager.Main.run(Main.java:92)
at com.android.sdkmanager.Main.main(Main.java:81)
logout
解决方法:
我发现更新到10.6.3后应该有一个问题(应该知道).我什么都找不到,但是发布之后,我突然也无法打开Eclipse.这在Apple论坛上导致this thread,表明问题可能是字体缓存损坏,这又导致了有关如何清除字体缓存here的解释.按照清除字体缓存的说明进行操作之后,我尝试了Eclipse和再次安装Android;这次,它运行良好.