I verwendet Vector Drawable in Bild src wie folgt aus:Set Vector Drawable in Image Ursache app Absturz in alten SDK
<ImageView
android:id="@+id/isSold"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:visibility="gone"
app:srcCompat="@drawable/ic_soldout_24px"
tools:ignore="MissingPrefix"/>
Ich habe auch diese zu manifestieren:
defaultConfig {
vectorDrawables.useSupportLibrary=true
}
und ich compile 'com.android.support:appcompat-v7:23.2.1'
aber meine App stürzt in alten SDK mit der Nachricht Error inflating class ImageView
und tut es immer noch abstürzen, wenn Sie 'App entfernen: srcCompat = "@ ziehbar/ic_soldout_24px"'? – pskink