I am seeing in Android Studio 3.1.2 an error for AppCompat themes and colors attributes like attr/colorPrimary.
But only in Android Studio. Compile and run does work.
For example:
My app.gradle:
supportLibVersion is 27.1.1!
This helped in the similar problem. Maybe this help you:
Close the project from the File menu. Then open the project again as existing Android Studio project.
I posted my answer on link mentioned by V.March. Basicly Invalidate Caches / Restart solved my problem
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With