"AAPT2 error, failed parsing overlays" problem in Android studio

Viewed 4557

After updating Android Studio, I get this error when building project:

enter image description here

and this:

enter image description here

How can I solve this problem?

4 Answers

Update your android Gradle plugin version in your build.gradle file to 3.2.0-alpha11 or newer it all compiles fine:

classpath 'com.android.tools.build:gradle:3.2.0-alpha11'

I resolved it by deleting app/build folder and then rebuild.

Related