Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio 3.1 can not resolve "Theme.AppCompat" styles properly

Last night, I upgrade my android studio from 3.0.1 to 3.1, and rebuild my project, and I got the error as show below.

enter image description here

CHECKED LIST:

  1. compileSdkVersion 27

  2. buildToolsVersion '27.0.3'

  3. classpath 'com.android.tools.build:gradle:3.1.0'

  4. implementation 'com.android.support:appcompat-v7:27.1.0'

  5. implementation 'com.android.support:design:27.1.0'

like image 717
Leon Lei Avatar asked Nov 30 '22 14:11

Leon Lei


1 Answers

As mentioned in this question:

  1. Close project.
  2. Remove it from the projects list (left side in the default Android Studio window).
  3. Open existing project -> choose the project folder.

Basically, close & re-open the project.. worked for me (after even invalidating cache didn't work).

Related issues from issuetracker: 77211616, 77938563, 73536373

like image 172
Aba Avatar answered Dec 03 '22 04:12

Aba