Android Studio 打包apk时遇到的问题

 在打包时遇到这样一个问题,如下图:

Lint found fatal errors while assembling a release target. 
To proceed, either fix the issues identified by lint, or modify your build script as follows: 
… 
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 
} 
}

解决方案:

在app的build下的android中加入

这三行代码,再打包就ok了

代码如下:

 lintOptions {
        checkReleaseBuilds false
        abortOnError false
    }

猜你喜欢

转载自blog.csdn.net/lzllzllhl/article/details/86672114