PHP8.1.21版本已发布
vue8.1.21版本已发布
jquery8.1.21版本已发布

博客列表 > android studio 打包apk,出现以下错误

android studio 打包apk,出现以下错误

弘德誉曦的博客
弘德誉曦的博客 原创
2020年02月01日 09:16:11 1236浏览

android studio 打包apk,出现以下错误

  1. Error:Execution failed for task 'xxx'.
  2. > Lint found fatal errors while assembling a release target.
  3. To proceed, either fix the issues identified by lint, or modify your build script as follows:
  4. ...
  1. android {
  2. lintOptions {
  3. checkReleaseBuilds false
  4. // Or, if you prefer, you can continue to check for errors in release builds,
  5. // but continue the build even when errors are found:
  6. abortOnError false
  7. }
  8. }

解决方案:

在app的build.gradle中添加如下代码,重新Generate Signed APK

  1. android{
  2. lintOptions {
  3. checkReleaseBuilds false
  4. abortOnError false
  5. }
  6. }

作者:sybil052
链接:https://www.jianshu.com/p/c6ad9207e476
来源:简书

声明:本文内容转载自脚本之家,由网友自发贡献,版权归原作者所有,如您发现涉嫌抄袭侵权,请联系admin@php.cn 核实处理。
全部评论
文明上网理性发言,请遵守新闻评论服务协议