Lint found fatal errors while assembling a release target

前端 未结 9 769
庸人自扰
庸人自扰 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: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

提交回复
热议问题