解决方法:
使用Gradle Plugin 2.0以上: android { defaultConfig { vectorDrawables.useSupportLibrary = true } }
使用Gradle Plugin 2.0以下,Gradle Plugin 1.5以上:
android { defaultConfig { // Stops the Gradle plugin’s automatic rasterization of vectors generatedDensities = [] } // Flag to tell aapt to keep the attribute ids around aaptOptions { additionalParameters "--no-version-vectors" } }