In your module build.gradle
file, you need to add this line:
apply plugin: 'com.android.application'
android {
...
defaultConfig {
...
vectorDrawables.useSupportLibrary = true // This line here
}
...
}
...
Related Contents:
- Change fill color on vector asset in Android Studio
- Getting Bitmap from vector drawable
- How to center vector drawable in layer-list without scaling
- Convert VectorDrawable to SVG [closed]
- VectorDrawable – is it available somehow for pre-Lollipop versions of Android? [closed]
- What is the impact of viewportwidth/height on Android drawables
- Support library VectorDrawable Resources$NotFoundException
- Android Selector Drawable with VectorDrawables srcCompat
- How to set VectorDrawable as an image for ImageView programmatically
- Converting SVG file to Android Vector Drawable XML while keeping the group structure in place
- Android Vector Drawable not support, not support
- Why is my SVG failing to load in Vector Asset Studio
- Change fillColor of a vector in android programmatically
- SplashScreen with Vector stretched full screen
- How to change color of vector drawable path on button click
- How to emulate GPS location in the Android Emulator?
- What is the difference between FragmentPagerAdapter and FragmentStatePagerAdapter?
- How to Set a Custom Font in the ActionBar Title?
- How to use ScrollView in Android?
- AsyncTask and error handling on Android
- Android ImageView Zoom-in and Zoom-Out
- Conflict with dependency ‘com.android.support:support-annotations’. Resolved versions for app (23.1.0) and test app (23.0.1) differ
- What is the equivalent of “android:fontFamily=”sans-serif-light” in Java code?
- Retrofit and GET using parameters
- Warning: Do not place Android context classes in static fields; this is a memory leak (and also breaks Instant Run)
- How to put a “-” in string.xml file
- Duplicate classes from androidx and com.android.support
- Rendering problems in Android Studio v 1.1 / 1.2
- android – listview get item view by position
- How to attach source to android.jar
- Change spinner background color but keep arrow
- Android how to create runtime thumbnail
- Updating Android SDK: “A folder failed to be moved.”
- Android – copy existing project with a new name in Eclipse
- How can I read a text file from the SD card in Android?
- Could not create task ‘:app:minifyReleaseWithR8’. Cannot query the value of this provider because it has no value available
- Jetpack Compose on Kotlin 1.5.0
- No “Docked Mode” option in “Preview” settings in Android Studio once undocked
- How write Java.util.Map into parcel in a smart way?
- How to browse localhost on Android device?
- Why to use Handlers while runOnUiThread does the same?
- Start motion scene programmatically
- android service startService() and bindService()
- What ProGuard configuration do I need for Firebase on Android?
- Android cannot pass intent extras though AlarmManager
- Android Place Picker closes immediately after launch
- How to start Android Kernel programming?
- No Activity found to handle Intent
- app:layout_marginBottom is not working well with android constraint layout
- The project target (Android L (Preview)) was not properly loaded