Pulkit Pulkit - 3 years ago 181
Android Question

Android Studio 3.0 Beta 4 cannot resolve symbol Theme

As stated in style.xml, there is a weird error, which shows Cannot resolve symbol 'Theme', which is quite strange.

See pic of the error :-
enter image description here

My Project Specs:-

Using Android Studio 3.0 beta 4

and gradle version 3.0.0-beta4

and distributionUrl=https://services.gradle.org/distributions/gradle-4.1-all.zip


Tried clearing the cache by going to File > Invalidate Cache/Restart > Invalidate and Restart, but to no avail, as the error persists.

Answer Source

It seems to be a setting update of "injected references". Search this word in settings dialog and change its "Severity" option to a different value and apply, then change back to its original choice. The error highlight in the editor then disappears.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download