Constant 'Running Android Lint' Failed, nullpointerexception popping up in Eclipse (but doesn't seem to be my code)

Rob picture Rob · Aug 8, 2012 · Viewed 23.9k times · Source

I don't recall what it is I updated (probably some android ADK items), but suddenly I keep getting a "Problem Occurred" text box in Eclipse, frequently. It says:

'Running Android Lint' has encountered a problem. Failed

And there is an OK and a Details button. When I click Details, I get:

Failed java.lang.NullPointerException

From the text box, I can't tell what it is that failed....it sounds like the running of Lint itself failed, and failed from a NPE. There is no line number associated with any of my code anywhere, so I don't think it's from my code.

I've tried disabling running Lint along with everything else...but clicking the checkbox for "Runs Android Lint" just causes Lint to run, and thus give the message box warning. It does seem to actually run, as several Lint warnings appear on the bottom. But it still seems like it's telling me Lint itself is having a NPE...and I have on idea where to fix that.

I'm running Eclipse SDK 3.7.2 in Windows Home Premium 64bit, with JDK 6 (recently uninstalled JDK 7 and installed 6 instead.)

Answer

abegosum picture abegosum · Aug 13, 2014

This is caused by a bug in ADT 23.0.2, noted per the issue here: https://code.google.com/p/android/issues/detail?id=73002

Upgrading to 23.0.3 fixed it for me.

  1. Start Eclipse
  2. Go to Help->Install new Software
  3. Select "Android Developer Tools Update Site - https://dl.google.com/android/eclipse/" from the drop down (You can add it if you don't have it by clicking add and pasting the name and URL)
  4. Check the Developer Tools package in the package list (expand it and make sure that all the sub-packages are checked)
  5. To avoid a bug when installing, uncheck "Contact all update sites during install to find required software"
  6. Click next, accept licences, click next
  7. Once the install finishes, restart Eclipse.