答案 0 :(得分:0)
您需要将vectorDrawables.useSupportLibrary = true添加到build.gradle文件中::
///////////For Gradle Plugin 2.0+
android {
defaultConfig {
vectorDrawables.useSupportLibrary = true
}
}
=========================================
///////////For Gradle Plugin 1.5
android {
defaultConfig {
generatedDensities = []
}
// This is handled for you by the 2.0+ Gradle Plugin
aaptOptions {
additionalParameters "--no-version-vectors"
}
}
点击此链接了解详情:http://android-developers.blogspot.in/2016/02/android-support-library-232.html