如何解决这个问题:“运行Android皮棉'的问题 [英] How to solve this : 'Running android lint' issue

查看:324
本文介绍了如何解决这个问题:“运行Android皮棉'的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的项目的任何活动,如果我做了一些更改,然后保存该活动我得到的消息运行Android皮棉遇到了问题。

In any activity of my project, if i do some changes and then save that activity i got the message "Running android lint has encountered a problem."

这是我的错误日志:

java.lang.NullPointerException
at com.android.ide.eclipse.adt.AdtUtils.workspacePathToFile(AdtUtils.java:466)
at com.android.ide.eclipse.adt.internal.lint.EclipseLintClient.getClassPath(EclipseLintClient.java:753)
at com.android.tools.lint.client.api.LintClient.getJavaClassFolders(LintClient.java:198)
at com.android.tools.lint.detector.api.Project.getJavaClassFolders(Project.java:270)
at com.android.tools.lint.client.api.LintDriver.checkIndividualClassFiles(LintDriver.java:977)
at com.android.tools.lint.client.api.LintDriver.checkClasses(LintDriver.java:920)
at com.android.tools.lint.client.api.LintDriver.runFileDetectors(LintDriver.java:785)
at com.android.tools.lint.client.api.LintDriver.checkProject(LintDriver.java:661)
at com.android.tools.lint.client.api.LintDriver.analyze(LintDriver.java:288)
at com.android.ide.eclipse.adt.internal.lint.LintJob.run(LintJob.java:151)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)\

我不知道如何解决这个问题。

I don't to know how to solve this.

推荐答案

然而,这里的根本原因是某种形式的无效项目定义 - 一个或多个类路径项指向它不能成为资源开通;例如,你可能有一个类路径引用是相对于类路径变量,类路径变量不再指向一个绝对位置。

However, the root cause here is some sort of invalid project definition -- one or more of the class path entries are pointing to a resource which can't be opened; for example, you might have a classpath reference which is relative to a class path variable, and the class path variable is no longer pointing to an absolute location.

上面的CL将只需确保棉绒不会在这种情况下抛出异常,但它不会能够做到实际上包括给定的参考

The above CL will simply make sure that lint doesn't throw an exception in this scenario, but it won't be able to do actually include the given reference.

您会想看看该项目的属性对话框,并确保所有的构建路径和资源是正确的 - 这就是解决办法之前,这个问题是集成

You'll want to look at the project properties dialog and make sure all the build paths and resources are correct -- and that's the workaround until this issue is integrated

这篇关于如何解决这个问题:“运行Android皮棉'的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆