android-打包错误...failed...´:app:lintVitalRelease´´.

拷贝了份工程,改了改包名,就安装错误,打包错误,哎!好脆弱的感觉…回头有机会我要看本as相关的书籍了….

网友有分析,较详细: https://www.jianshu.com/p/326c91e344a8

   Error:Execution failed for task ´:app:lintVitalRelease´.
> 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
      }
  }
  ...

解决:

    ///< 添加如下配置就ok了
    lintOptions {
        checkReleaseBuilds false
        abortOnError false
    }

    原文作者:MonkeyLei
    原文地址: https://zhuanlan.zhihu.com/p/52186257
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞