I upgraded Android Studio today to 3.1, and now Android Studio says it cannot resolve symbols for most of the resources (for example ThemeOverlay
in style
This error happens because the support library gets out of sync with your project. To get it back in sync you can do the following steps:
Comment out the implementation
lines for the support library. For me it looks like this:
//implementation 'com.android.support:appcompat-v7:27.1.1'
//implementation 'com.android.support:recyclerview-v7:27.1.1'
//implementation 'com.android.support.constraint:constraint-la
Sync your project with gradle. You will have some errors now. Don't worry about that.
Uncomment the implementation
lines that you previously commented out.
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:recyclerview-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-la
Sync your project with gradle again.
The "Cannot Resolve Symbol" error should be gone now. This has worked for me several times on different projects.
Note