博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Lint found fatal errors while assembling a release target.
阅读量:6841 次
发布时间:2019-06-26

本文共 1188 字,大约阅读时间需要 3 分钟。

Android packaging error:

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      }  }  ...

 

Solution:

 

In fact, the solution is already in the error message, that is to add a configuration in the build.gradle of corresponding project. In android{} block of build.gradle of app, add the following code:

android {
compileSdkVersion 23 buildToolsVersion ´25.0.0´ defaultConfig { applicationId "com.luzhiyao.sgongdoocar" minSdkVersion 14 targetSdkVersion 23 versionCode 5 versionName "1.1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile(´proguard-android.txt´), ´proguard-rules.pro´ } } //Add the following configuration lintOptions { checkReleaseBuilds false abortOnError false } }

Then rerun Generate Signed Apk, everything is ok now.

转载地址:http://sdzul.baihongyu.com/

你可能感兴趣的文章
SQL收缩数据库
查看>>
Linux基本防护措施
查看>>
Android 日志级别总结
查看>>
生产环境部署NodeJs最佳实践
查看>>
2t3ik与ddgs挖矿病毒处理
查看>>
html备份
查看>>
阿里曾鸣:全球最值钱的互联网公司都做对了什么?
查看>>
千万不要嫁给程序猿,我是认真的
查看>>
刚拿百度offer回来,分享一份刚出炉的百度Java面试真题详解
查看>>
docker私有仓库管理系统harbor的部署使用
查看>>
centos 编译安装gcc8.1
查看>>
ICS Protocol Dissection
查看>>
Linux的DHCP服务配置
查看>>
我的友情链接
查看>>
【挨踢人物传】李晨光:兴趣铸就专业,努力决定成败
查看>>
横向ListView
查看>>
mysql主从同步操作
查看>>
全国省市数据
查看>>
判断文件夹大小并复制到另一个地方
查看>>
CISCO 路由器 HWIC-4ESW 配置案例
查看>>