Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running android lint error

Tags:

android

I'm using android lint tools with eclipse to find potential bugs in my project, but after a few seconds it shows:

"Running Android Lint encountered a problem"

When I click details, it shows:

"Failed java.lang.NullPointerException".

Can someone give me some suggestions.

like image 822
user1645340 Avatar asked Sep 04 '12 07:09

user1645340


People also ask

What is lint error 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.

How do you stop lint errors?

@SuppressLint("NewApi") Just invoke the quickfix for the warning, and one of the options will be to ignore the issue with an annotation; this will annotate either the local declaration, or the method, or the class, or the field, depending on the location of the error.

How do you check for lint error?

1.In the Android view, open your project and select the project, a folder, or a file that you want to analyze. 2. From the menu bar, select Analyze > Inspect Code. 3.In the Specify Inspection Scope dialog, review the settings.

What is lint issue?

What Is Linting? Linting is the automated checking of your source code for programmatic and stylistic errors. This is done by using a lint tool (otherwise known as linter).


1 Answers

Lint Tool indicates errors in XML Layout Files in Resources, check all the layout files, and resolve error.

To See error, you can do from Eclipse Menu-> Windows -> Show View-> Problems.

like image 121
jeet Avatar answered Nov 15 '22 05:11

jeet