Lint found fatal errors while assembling a release target

Solution 1:

  1. You can use Analyze > Inspect Code menu to manually run inspections. The results appear in the Inspection Results window. This way you can view and fix the real issues.

  2. You can still view them from app\build\reports\lint-results-release-fatal.html file without using aforementioned manual inspection menu.

  3. Although it's not recommended you can also suppress the lint warnings by adding below code into your build.gradle as Android Studio suggests. But keep in mind that this will not fix any real issues.

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
    }
}

Solution 2:

You can find out details in your app path

 /YOUR_APPLICATION/app/build/reports/ 

enter image description here

in this folder, there is a HTML document that describes the error.

For more information, you can visit the page that i find a solution.

https://dominoc925.blogspot.com/2018/08/how-to-find-cause-of-lint-error-while.html

Solution 3:

Here I have written an article on all possible solutions to resolve Lint found fatal errors issue.

Generally, you can resolve it in the following way:

Android studio shows all build errors in html & xml file present at the following link. Just open that file in your browser, check the error and fix it.

/YOUR_APPLICATION/app/build/reports/lint-results-release-fatal.html

enter image description here

Sample Error

enter image description here

Solution 4:

This works for me

lintOptions { 
    checkReleaseBuilds false
}

Add this code into the build.gradle file within android {} section