My project works fine yesterday; but when I Updated Android studio to 3.0 today and accordingly AAPT2 is enables by default. I have the following error:
Erro
I faced the same problem after updating to 3.0. Added this line in the "gradle.properties" file of my project.
android.enableAapt2=false
Let me know if this works.