This app has been built with an incorrect configuration. Please configure your build for VectorDraw

1、先看看gradle版本号

dependencies {
    classpath 'com.android.tools.build:gradle:2.1.0'
  }

2、gradle版本号在2.0+,在主项目module中build.gradle文件里面android->defaultConfig下添加vectorDrawables.useSupportLibrary = true,如下所示:

android { defaultConfig { vectorDrawables.useSupportLibrary = true ... } }
3、gradle版本号在2.0下,在主项目module中build.gradle文件里面android->defaultConfig下添加generatedDensities = [],在android下添加

aaptOptions {
   additionalParameters "--no-version-vectors"
  }

如下所示:

android {
  defaultConfig {
    generatedDensities = []
    ...  
  }

  aaptOptions {
   additionalParameters "--no-version-vectors"
  }
}

4、添加appcompat-v7 23.2.0+:在主项目module中build.gradle文件dependencies{}里面添加

compile 'com.android.support:appcompat-v7:23.4.0'


你可能感兴趣的:(23,VectorDraw,defaultConfig)