Android Nougat cannot show certain vector files (Resources$NotFoundException)

I found a workaround! It seems the problem is in AAPT2.

Adding:

android.enableAapt2 = false

To

gradle.properties

In my case, the vector drawable xml file had path entries with empty pathData string. I removed these path entries and it is working.

Android Studio generated this faulty xml while importing from external svg file.

Open the vector drawable xml and remove / comment following lines.

<path
        android:pathData=""
        android:fillColor="#000000"/>