问题描述
我已经在android 6中构建了我的应用程序而没有任何错误,但是当我在android 4.4.2中构建了我的应用程序时,我得到了这个错误
I Have build my app in android 6 without any error, but when I build my app in android 4.4.2 I get this error
This app has been built with an incorrect configuration.
Please configure your build for VectorDrawableCompat.
这是我的礼物:
android {
compileSdkVersion 24
buildToolsVersion "23.0.0"
defaultConfig {
applicationId "com.faranegar.channel"
minSdkVersion 11
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
注意:当我设置compileSdkVersion 23时,一切都很好,没有任何错误.
note: when I set compileSdkVersion 23, every thing is fine and there isn't any error.
推荐答案
已在此报告此问题问题214182:appcompat-v7 24.0.0与栅格化矢量不兼容.
其中一位开发人员提到:
One of the developer mention:
从Gradle插件v2.0开始,从不提供库资源 光栅化,所以这永远不会发生.
As of v2.0 of the Gradle plugin, library resources are never rasterized so this should never happen.
此问题的解决方法是通过以下官方链接更新您的Gradle. 适用于Gradle的Android插件发行说明.
The workaround for this is to update your Gradle by following this official link. Android Plugin for Gradle Release Notes.
buildscript {
...
dependencies {
classpath 'com.android.tools.build:gradle:2.1.0'
}
}
这篇关于为什么“此应用程序的构建使用了错误的配置"?一些手机出现错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!