Lint found fatal errors while assembling a release target

前端 未结 9 750
庸人自扰
庸人自扰 2020-12-12 18:05

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

相关标签:
9条回答
  • 2020-12-12 18:16

    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.

    0 讨论(0)
  • 2020-12-12 18:17

    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.

    0 讨论(0)
  • 2020-12-12 18:18

    After a while I find solution for my problem. Just check for differences between strings.xml(for different languages - if you have)

    0 讨论(0)
  • 2020-12-12 18:21

    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

    0 讨论(0)
  • 2020-12-12 18:27

    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

    0 讨论(0)
  • 2020-12-12 18:28

    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

    0 讨论(0)
提交回复
热议问题