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.
You can check which one of them is bad by running "gradlew --info assembleDebug" in the terminal. In my case I removed the red border from one of them. Hope it helps.