为什么我得到这个错误我尝试清理和重建应用程序并制作 应用程序发布为真,我得到同样的错误
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 {
}
}
最佳答案
要找出 lint 失败的原因,请执行以下操作:
- 运行 lintVitalRelease
您可以在 Gradle 窗口中进行操作
- 在运行选项卡下,您将看到错误日志
对我来说,这是 ConstraintLayout XML 中的错误约束。
关于java - 错误 : Execution failed for task ':app: lintVitalRelease' any one can solve it?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49286268/