Using Vector Drawable Compat

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
    }
    ...
}

...

add this line to your Gradle file under defaultConfig block:

vectorDrawables.useSupportLibrary = true

Also, you need to add this block of code in every activity or fragment where you're referencing drawables instead of images in srcCompat:

static {
        AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);
    }

You have to add vectorDrawables.useSupportLibrary = true this line of code in you app level build.gradle inside the defaultConfig tag

defaultConfig {
        applicationId "your package Name"
        minSdkVersion 19
        targetSdkVersion 29
        versionCode 1
        versionName "0.0.1"
        //This is the Main Line you have to add to avoid this warning.
        vectorDrawables.useSupportLibrary = true
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }