0


打包apk时出现Execution failed for task ‘:app:lintVitalRelease

程序可以正常运行,但是打包apk的时候报Execution failed for task ‘:app:lintVitalRelease导致打包失败,原因是执行lintVitalRelease失败了,存在错误。解决办法:在app模块的build.gradle的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
}

标签: gradle

本文转载自: https://blog.csdn.net/u013023845/article/details/131413828
版权归原作者 六月的雨123 所有, 如有侵权,请联系我们删除。

“打包apk时出现Execution failed for task ‘:app:lintVitalRelease”的评论:

还没有评论