Search code examples
androidandroid-studioandroid-theme

Android Studio Rendering Error: Missing Styles


I'm trying to learn Android through the tutorials at TheNewBoston.com. In the tutorial, I'm supposed to switch to the material light theme. That's when I get the error. It says:

Missing styles. Is the correct theme chosen for the layout?

Here's a screen shot:

Screenshot

Here's what I've tried:

  1. I've tried switching out of Android API 23, N preview for a lower API
  2. I've tried changing code in the styles.xml file from

    <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">

    to

    <style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">

  3. I've tried invalidating the cache and restarting.

Nothing seems to be working. I'm very new at Android and just want to get the IDE set up correctly. I also get this message on startup and I think it's related to the error:

Related Error


Solution

  • Reinstalling Android Studio and right-clicking the shortcut to run the program as administrator sorted out the problem.