[ad_1]
Update 2: They enable it again in Support Library 23.4.0:
For AppCompat users, we’ve added an opt-in API to re-enable support Vector Drawables from resources (the behavior found in 23.2) via AppCompatDelegate.setCompatVectorFromResourcesEnabled(true) – keep in mind that this still can cause issues with memory usage and problems updating Configuration instances, hence why it is disabled by default.
Check this 23.4.0 available now
Update: This doesn’t work from version 23.3.0
Check here for details.
Proxy drawables don’t work. app:srcCompat
and setImageResource()
work, however.
Vector Drawable support is available from the Support Library of version 23.2 and beyond. However, to properly use those drawables, they must be referenced indirectly.
First step would be to bump the AppCompat
version.
compile 'com.android.support:appcompat-v7:23.2.0'
Second enable Vector Drawable support.
If using Gradle plugin, 2.0+
android {
defaultConfig {
vectorDrawables.useSupportLibrary = true
}
}
Otherwise
android {
defaultConfig {
generatedDensities = []
}
aaptOptions {
additionalParameters "--no-version-vectors"
}
}
Third, refer to the linked answer.
[ad_2]