I am usingandroid.enableAapt2 = false in my gradle.properties file. After updating android studio to 3.1 my project showing a warning to update or
android.enableAapt2 = false
gradle.properties
Ensure that all your res resources are of a valid type. In my case I had a .mov file in my res/raw directory.
res
res/raw