Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 303
Rob Avatar asked Aug 07 '12 23:08

Rob


People also ask

How do I fix the lint error in eclipse?

Open the Java or XML file that has a lint warning or error in an Eclipse editor. Move your cursor to the location in the file where is lint issue is found, then press Ctrl+1 to bring up the Quick Fix pop-up. From the Quick Fix pop-up, select the action to add an annotation or attribute to ignore the lint issue.

What are lint errors in Android?

The lint tool checks your Android project source files for potential bugs and optimization improvements for correctness, security, performance, usability, accessibility, and internationalization. When using Android Studio, configured lint and IDE inspections run whenever you build your app.


1 Answers

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.
like image 72
abegosum Avatar answered Sep 30 '22 08:09

abegosum