How to solve this : 'Running android lint' issue

AndroidLearner picture AndroidLearner · Sep 3, 2012 · Viewed 64.4k times · Source

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."

This is the my error log :

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.

Answer

Bill picture Bill · Jul 3, 2014

The following steps helped me to solve the same issue.

  1. On My Project -> Context Menu -> Android Tools -> Fix Project Properties
  2. Changing to latest version in AndroidManifest.xml

    android:targetSdkVersion="21"
    

Maybe just one of them is enough :).