Android的ADT Eclipse插件,parseSDKContent失败 [英] Android ADT Eclipse plugin, parseSDKContent failed
问题描述
我刚刚建立了由我的第一个Android开发环境
I've just set up my first Android development environment consisting of
- 的Eclipse 3.5
- 的Mac OSX 10.5
- Android的SDK用于x86 Mac电脑
- 在ADT Eclipse插件0.9.6
我已经设置一套$ PATH我的SDK / tools目录(这不应该的问题,如果我只使用Eclipse吧?),并启动Eclipse的,但是当我尝试设置的路径在Eclipse SDK中,我得到错误parseSdkContent失败。从抛出的异常的堆栈跟踪
I've set set $PATH to my SDK/tools directory (which shouldn't matter if I only use Eclipse right?) and started Eclipse, but when I try to set the path to the SDK in Eclipse, i get the error "parseSdkContent failed". The stack trace of from the thrown exception is
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)
我看不到,我已经错过了在安装过程中任何东西,按照它应该基本上只是工作开箱的指示。任何想法,为什么这可能会失败?
I can't see that I've missed anything in the setup process, according to the instructions it should basically just work out of the box. Any ideas as to why this might fail?
推荐答案
一个快速浏览的 http://java.sun.com/javase/6/docs/api/javax/xml/validation/SchemaFactory.html 表明,什么是错的JDK 1.6设置。
A quick glance at http://java.sun.com/javase/6/docs/api/javax/xml/validation/SchemaFactory.html suggests that something is wrong with the JDK 1.6 setup.
设置-vm标志月食到原来的1.5没有帮助,但在取出显然错误配置的1.6一切的痕迹后,工作就像一个魅力。
Setting the -vm flag in eclipse to the original 1.5 did not help, but after removing all traces of the apparently misconfigured 1.6 everything worked like a charm.
这篇关于Android的ADT Eclipse插件,parseSDKContent失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!