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
- Step 1: Update your Android Support Library to version 23.0.2 or higher.
- Step 2: Use the `@drawable` notation in your XML files instead of `@mipmap` notation, as shown below:
Method 2: Using Support Library
- 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.
❓ Frequently Asked Questions
Step 1: Update your Android Support Library to version 23.0.2 or higher.Step 2: Use the `@drawable` notation in your XML files instead of `@mipmap` notation, as shown below:
Step 1: Add the following line of code to your `build.gradle` file:
🛠️ Related Fixes
How to Fix: Pc crashes shortly after launching game (rainbow
Pc crashes shortly after launching game, possible cause: outdated grap
How to Fix: Installing an APK on a locked down phone
Installing an APK on a locked down phone: Try using a rooted device, e
How to Fix: FPS drops
FPS drops in games can be caused by high system resource usage, outdat