cannot resolve symbol ThemeOverlay
cannot resolve symbol ThemeOverlay
after an update to Android Studio I get this problen that
cannot resolve symbol 'ThemeOverlay' of the lines.
<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />
it'll help me if u could tell me how to fix the problem.
Thx in advance.
2 Answers
2
Seems to be a problem with the SDK 28, change it to SDK 27 or change your code to:
<style name="AppTheme.AppBarOverlay" parent="Base.ThemeOverlay.AppCompat.Dark.ActionBar" />
<style name="AppTheme.PopupOverlay" parent="Base.ThemeOverlay.AppCompat.Light" />
It worked for me.
go to Gradle scripts -> build.gradle (App) and change
compiledSdkVersion 28
to 27, targetSdkVersion 28
to 27 and instead of for example ' implementation com.android.support:appcompat-v7:28.0.0-beta01
use implementation 'com.android.support:appcompat-v7:27.1.1
– Remph
Aug 16 '18 at 8:49
compiledSdkVersion 28
targetSdkVersion 28
com.android.support:appcompat-v7:28.0.0-beta01
implementation 'com.android.support:appcompat-v7:27.1.1
just follow these steps for api 21 to 28
problem solved
Thanks for contributing an answer to Stack Overflow!
But avoid …
To learn more, see our tips on writing great answers.
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
how can i change the sdk?
– Mayli
Aug 16 '18 at 8:41