383/5000 I have an app that gives me compilation errors when I change it to release mode to upload it to the play store
I\'ve tried analyzing-inspecting code and I d
File > Invalid Caches/Restart
has fixed the issue for me.
I am just getting started with the Android but I thought to try this before trying what's mentioned above and it worked.
There are two ways to solve this -
1 -> Go to Analyze > Inspect Code, Let it Inspect the code and then solve the problem.
2 ->Go to Project Structure > app > build > reports In reports, you will find the error report. Open it in any browser and see the error then solve it.
After a while I find solution for my problem. Just check for differences between strings.xml(for different languages - if you have)
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
Sample Error
For me i checked the errors in the xml and html files in /APPLICATION/app/build/reports Then i fixed all i could fix and for the rest i suppressed them by adding to my build.gradle the code below:
android {
lintOptions {
checkReleaseBuilds false
abortOnError false
}
}
This prevented android studio from aborting the build because of the remaining errors
You can find out details in your app path
/YOUR_APPLICATION/app/build/reports/
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