Software⏱️ 2 min read📅 2026-05-31

How to Fix: Using android vector Drawables on pre Lollipop crash

Vector Drawables on pre Lollipop crash fix

Quick Answer: The issue is likely due to the use of LayerDrawable before Lollipop. Try replacing it with a single VectorDrawable or using the android:useDefaultLayout=true property in your layout.

To resolve the issue of using Android Vector Drawables on pre-Lollipop versions, follow these steps:

🛠️ Step-by-Step Verified Fixes

Method 1: Vector Drawables in Pre-Lollipop Versions

  1. Step 1: Update your Android Support Library to version 23.0.2 or higher.
  2. Step 2: Use the `@drawable` notation in your XML files instead of `@mipmap` notation, as shown below:

Method 2: Using Support Library

  1. Step 1: Add the following line of code to your `build.gradle` file:
android {  defaultConfig {    vectorDrawables.useSupportLibrary = true    }  }

By implementing these steps, you should be able to use Android Vector Drawables on pre-Lollipop versions without any issues.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions