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.






how can i change the sdk?

– Mayli
Aug 16 '18 at 8:41






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.

Popular posts from this blog

𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

Edmonton

Crossroads (UK TV series)