打正式包的时候跳过错误检查

来源:互联网 发布:强矩阵组织 编辑:程序博客网 时间:2024/04/29 02:49

build.gradle下的android中加入如下的话就可以了 但是是极其不建议加的  我之所以发这个博客 是因为有人加在了我接手的项目上 

我怎么在relase下运行也不报错 这样写的程序是有bug的

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


原创粉丝点击