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

Execution failed for task ':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
}

安卓:打包apk时出现Execution failed for task ‘:app:lintVitalRelease_第1张图片

你可能感兴趣的:(Unity,安卓,android)