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.)
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With