美文网首页Android问题汇总(遥远的回忆过去)
android-打包错误...failed...´:app:li

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

作者: MonkeyLei | 来源:发表于2019-08-14 09:37 被阅读0次

    拷贝了份工程,改了改包名,就安装错误,打包错误,哎!好脆弱的感觉...回头有机会我要看本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
        }
    

    相关文章

      网友评论

        本文标题:android-打包错误...failed...´:app:li

        本文链接:https://www.haomeiwen.com/subject/zumwjctx.html