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:
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.