Android studio lint check

android studio 3.2.1

Android:debuggable="true" When compiling and generating debug version, it will not be checked by lint.
will not be checked when compiling and releasing the release version. The general prompts are as follows:

Lint found fatal errors while assembling a release target.

To proceed, either fix the issues identified by lint, or modify your build script as follows:
...
android {
    lintOptions {
        checkReleaseBuilds false
        // Or, if you prefer, you can continue to check for errors in release builds,
        // but continue the build even when errors are found:
        abortOnError false
    }
}
...

If the problem is not serious, you can cancel the lint check. According to the above tips, add the following content to app\build.gradle to cancel the lint check.

android {
    lintOptions {
        checkReleaseBuilds false
        // Or, if you prefer, you can continue to check for errors in release builds,
        // but continue the build even when errors are found:
        abortOnError false
    }
}

If the problem is serious, you can view the lint report and troubleshoot the items item by item. It is generally the place where there are red wavy lines in the android studio editor. Holding the mouse on the red wavy line will prompt a lint error.
The lint report is stored in app\build\reports\lint-results-release-fatal.html, right-clicking opens in a browser, which is very detailed.

Intelligent Recommendation

android lint check optimized code

What is lint check Android Lint is a static code analysis tool that can check for potential bugs, optimizable code, security, performance, usability, accessibility, internationalization, etc. in your ...

Android Custom LINT Check - Customlint

Warehouse Address background 1. Most code specification is floating on the surface, relying on the development of consciousness and Code Review to ensure a lot of legacy difficulties leading to many r...

Android Studio tools: Lint code scanning tool (including custom lint)

Reprinted: What is Lint Android Lint is a code scanning tool introduced from SDK Tools 16 (ADT 16). Through static analysis of the code, it can help developers find code quality problems and put forwa...

Android Studio uses Lint for code checking

Android Studio has been updated to the 1.4 version number, which is the official IDE recommended by Google. It is very powerful and provides a static code analysis tool. It can help us check the probl...

Static analysis using Android Studio Lint (2)

main content After configuring the scan scope and check items using the tools provided by Android Studio, the list of issues is listed in the lint.xml file to supplement the static scan. ❣️Special rem...

More Recommendation

Android Studio Lint tools are prompted to note

Android LINT section: Duplicated icons under different names The same ICON has used different names FrameLayout can be replaced with tag FrameLayout Can be replaced into a MERGE tag Handler reference ...

Customization of Android Lint check rules (basic)

My blogoriginal English original text: http://tools.android.com/tips/lint/suppressing-lint-warnings http://tools.android.com/recent/ignoringlintwarnings I. Introduction you can also ignore warnings us...

android lint check useless resource file deletion

Check the unused resource files under android studio and clear them to reduce the size of the apk. Step 1: First look at the size of the apk file before deleting the useless resources. Step 2: Open an...

Use Android Lint to check code defects

background Android Lint is a code checking tool that comes with Android. It can help us identify many potential errors. Lint introduction Android Lint can scan for potential errors in the source code ...

Android Lint check interrupted Build Task

During the build or run process, the task was interrupted due to Lint's inspection Outdated API warnings like the following can be solved by configuring gradle inprojectBuild.gradledallprojectsConfigu...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top