Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Build a Simple Android App with Java Creating the Screen Layout Setting a Fullscreen Theme

Ruslan T
Ruslan T
1,706 Points

Cannot resolve symbol 'Base.Theme.AppCompat.Light.NoActionBar'

I tried removing the ActionBar as shown in the video, but I got this error:

Cannot resolve symbol 'Base.Theme.AppCompat.Light.NoActionBar'

here's my style.xml:

<resources>

    <!-- Base application theme. -->
    <style name="AppTheme" parent="Base.Theme.AppCompat.Light.NoActionBar">
        <!-- Customize your theme here. -->
        <item name="colorPrimary">@color/colorPrimary</item>
        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
        <item name="colorAccent">@color/colorAccent</item>
    </style>

</resources>

can anyone help?

1 Answer

Muhittin Palamutçu
Muhittin Palamutçu
1,890 Points

Hey! I think you should write like that <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"> Try to do not add Base.