我正在开发一个Android项目。每当我编辑和保存XML文件时,我都会收到此错误:
"'运行Android Lint'遇到了问题。失败&#34 ;.
然后当我点击"详情"按钮,弹出。 "失败 java.lang.UnsupportedOperationException"我刚刚切换到Eclipse Android Neon,并使用了以前一直工作的旧工作区。任何帮助表示赞赏。感谢
Error Log:
java.lang.UnsupportedOperationException
at org.eclipse.andmore.internal.lint.EclipseLintClient$1.getNameLocation(EclipseLintClient.java:300)
at com.android.tools.lint.detector.api.XmlContext.getNameLocation(XmlContext.java:89)
at com.android.tools.lint.checks.RtlDetector.visitAttribute(RtlDetector.java:527)
at com.android.tools.lint.client.api.ResourceVisitor.visitElement(ResourceVisitor.java:197)
at com.android.tools.lint.client.api.ResourceVisitor.visitElement(ResourceVisitor.java:213)
at com.android.tools.lint.client.api.ResourceVisitor.visitFile(ResourceVisitor.java:158)
at com.android.tools.lint.client.api.LintDriver.checkIndividualResources(LintDriver.java:1765)
at com.android.tools.lint.client.api.LintDriver.runFileDetectors(LintDriver.java:1020)
at com.android.tools.lint.client.api.LintDriver.checkProject(LintDriver.java:904)
at com.android.tools.lint.client.api.LintDriver.analyze(LintDriver.java:433)
at com.android.tools.lint.client.api.LintDriver.analyze(LintDriver.java:374)
at org.eclipse.andmore.internal.lint.LintJob.run(LintJob.java:163)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)