我刚刚建立了我的第一个 Android 开发环境,包括
- 日食 3.5
- Mac OSX 10.5
- 适用于 x86 mac 的 Android SDK
- ADT Eclipse 插件 0.9.6
我已将 set $PATH 设置为我的 SDK/tools 目录(如果我只使用 Eclipse,这不重要吗?)并启动了 Eclipse,但是当我尝试在 Eclipse 中设置 SDK 的路径时,我收到错误“ parseSdkContent 失败”。抛出异常的堆栈跟踪是
java.lang.IllegalArgumentException: http://www.w3.org/2001/XMLSchema
at javax.xml.validation.SchemaFactory.newInstance(SchemaFactory.java:181)
at com.android.ide.eclipse.adt.internal.sdk.LayoutDevicesXsd.getValidator(Unknown Source)
at com.android.ide.eclipse.adt.internal.sdk.LayoutDeviceManager.parseLayoutDevices(Unknown Source)
at com.android.ide.eclipse.adt.internal.sdk.LayoutDeviceManager.loadDefaultLayoutDevices(Unknown Source)
at com.android.ide.eclipse.adt.internal.sdk.LayoutDeviceManager.loadDefaultAndUserDevices(Unknown Source)
at com.android.ide.eclipse.adt.internal.sdk.Sdk.<init>(Unknown Source)
at com.android.ide.eclipse.adt.internal.sdk.Sdk.loadSdk(Unknown Source)
at com.android.ide.eclipse.adt.AdtPlugin$13.run(Unknown Source)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
我看不出我在设置过程中遗漏了任何东西,根据说明,它基本上应该开箱即用。关于为什么这可能会失败的任何想法?