Andorid开发——Error:Execution failed for task ':app:lintVitalRelease'.

标签: 打包错误 lintVitalRelease
9人阅读 评论(0) 收藏 举报
分类:

前言

在日常的开发当中,我们一点会遇到打包apk测试。今天公司要我打包apk测试,可是按照正常流程打包的时候遇到了打包错误。下面是我解决错误的过程。

Error:Execution failed for task ‘:app:lintVitalRelease’.

Android studio打包apk时,显示以下错误

Error:Execution failed for task ‘:app:lintVitalRelease’.
java.lang.IllegalStateException: Expected a name but was STRING at line 1 column 99 path $[0].apkInfo.versionName.

解决方法

在model的build.gradle文件中android区间中加入下面的代码

 lintOptions {
        checkReleaseBuilds false
        abortOnError false
    }

加入上面的代码之后重新编译,重新打包apk安装包就没有问题了。希望对于遇到这个问题的小伙伴有帮助。

查看评论

打包错误:`Error:Execution failed for task ':app:lintVitalRelease'.

错误代码: `Error:Execution failed for task ‘:app:lintVitalRelease’. Lint found fatal errors while a...
  • fwt336
  • fwt336
  • 2017-01-05 15:02:51
  • 2942

Android sutdio生成apk错误Error:Execution failed for task

错误内容:Error:Execution failed for task ':app:transformNativeLibsWithStripDebugSymbolForDebug'. > java....
  • fengwuyu4108
  • fengwuyu4108
  • 2017-07-27 15:01:19
  • 612

Mr.Smile填坑记——打release包报错Error:Execution failed for task ´:app:lintVitalRelease´.

Error:Execution failed for task ´:app:lintVitalRelease´. > Lint found fatal errors while assembling ...
  • Keep_Holding_On
  • Keep_Holding_On
  • 2017-07-27 13:41:25
  • 536

ANDROID打包错误ERROR:EXECUTION FAILED FOR TASK ´:APP:LINTVITALRELEASE´.

错误信息 Error:Execution failed for task ´:app:lintVitalRelease´. > Lint found fatal errors while ass...
  • a791404623
  • a791404623
  • 2017-06-03 10:52:29
  • 1228

AndroidStudio打包apk出现的问题 `Error:Execution failed for task ':app:lintVitalRelease'

打包的时候出现如下错误: Lint found fatal errors while assembling a release target.  To proceed, either fix th...
  • ddddwwww2
  • ddddwwww2
  • 2016-12-09 19:23:03
  • 2278

android 错误Error:Execution failed for task ':app:lintVitalRelease'.>

Error:Execution failed for task ':app:lintVitalRelease'.> Lint found fatal errors while assembling a...
  • zuiaisha1
  • zuiaisha1
  • 2017-05-22 09:55:11
  • 705

【Android】AndroidStudio打包apk出现的一些问题 `Error:Execution failed for task ':app:lintVitalRelease'.

1,错误代码: `Error:Execution failed for task ‘:app:lintVitalRelease’. Lint found fatal errors while a...
  • qq_21376985
  • qq_21376985
  • 2016-08-31 14:23:58
  • 7273

[坑] Error:Execution failed for task ':app:lintVitalRelease'

打包时的错误提示: Error:Execution failed for task ':app:lintVitalRelease'. > java.lang.IllegalStateE...
  • E_xiake
  • E_xiake
  • 2018-04-19 10:40:01
  • 12

Android Studio Error:Execution failed for task ':app:transformClassesWithDexForDebug' 解决办法

Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.api.tra...
  • Nil88
  • Nil88
  • 2016-09-18 22:35:27
  • 623

Error:Execution failed for task ':DistAndroidMapPhone:transformClassesWithDexForDebug

该错误是由于我调试了一个项目后导致的: Error:Execution failed for task ':app:transformClassesWithDexForDebug'.> com.and...
  • Rgen_xiao
  • Rgen_xiao
  • 2017-02-13 16:54:24
  • 312
    个人资料
    持之以恒
    等级:
    访问量: 4679
    积分: 689
    排名: 7万+
    最新评论