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