错误:任务':app:lintVitalRelease'的执行失败,任何人都可以解决吗? [英] Error: Execution failed for task ':app: lintVitalRelease' any one can solve it?

查看:616
本文介绍了错误:任务':app:lintVitalRelease'的执行失败,任何人都可以解决吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么会出现此错误,所以我尝试清理和重建应用程序并制作 应用程序发布为true,并且出现相同错误

Why I get this error I try to clean and rebuild application and make application release true and I get same error

错误:任务':app:lintVitalRelease'的执行失败. java.lang.IllegalStateException:预期为BEGIN_ARRAY,但位于第1行第1列路径$

Error:Execution failed for task ':app:lintVitalRelease'. java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 1 path $

    apply plugin: 'com.android.application'

android {
    compileSdkVersion 25
    buildToolsVersion '26.0.2'
    useLibrary 'org.apache.http.legacy'
    defaultConfig {
        applicationId "x.x.x"
        minSdkVersion 15
        targetSdkVersion 25
        versionCode 95
        versionName '5'

        multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    productFlavors {
    }

}

推荐答案

要找出棉绒失败的原因,请执行以下操作:

To find out why lint fails do this:

  1. 运行lintVitalRelease

您可以在Gradle窗口中完成

You can do it from Gradle window

  1. 在运行"选项卡下,您将看到错误日志

对我来说,ConstraintLayout XML中的约束是错误的.

For me, it was wrong constraint in ConstraintLayout XML.

这篇关于错误:任务':app:lintVitalRelease'的执行失败,任何人都可以解决吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆