When I clean the android project in android studio, the error happen, I have backed to previous commit or different branch, which works find couple days ago, but has this er
In my case I declared a string variable in xml using data binding without assigning a value to it. by setting value to variable problem resolved
For the time being, you can downgrade Gradle version to resolve this issue. Use gradle 3.1 version like 3.1.3 below.
classpath 'com.android.tools.build:gradle:3.1.3'
I had encountered the same and fixed by clear the build cache .
I found an SVG file that had a very long pathData
. I commented it out and the error went away. That very same vector (when called) at runtime would cause a crash (before it was commented out).