3

I know this has come up and I looked at some other pages to find some help but I'm still having this problem.

I updated the minSdkVersion in build.gradle and hit sync. In the manifest file I set the application theme to android:theme="@style/Theme.Holo.Light"

I still get the cannot resolve symbol @style/Theme.Holo.Light error

I can only use the Theme.AppCompat stuff, nothing else shows up

Any ideas?

JiTHiN
  • 6,548
  • 5
  • 43
  • 69
gazayas
  • 97
  • 1
  • 10
  • See this [answer](http://stackoverflow.com/a/9681744/4385913) – Skizo-ozᴉʞS ツ Feb 04 '15 at 09:30
  • 2
    use @android:style/Theme.Holo.Light instead – vs.thaakur Feb 04 '15 at 09:34
  • @vs.thaakur you are right – IntelliJ Amiya Feb 04 '15 at 10:04
  • Hey, thanks, I still can't use android:theme="@style/Theme.Holo.Light" in the manifest file, but I created a new resources .xml, made a custom theme and put parent="@android:style/Theme.Holo.Light" and that worked. I'm glad it worked, but is that the only way? Like, I can't do it directly from the manifest file? – gazayas Feb 04 '15 at 10:04
  • just add @android:style/Theme.Holo.Light in your menifest file – vs.thaakur Feb 04 '15 at 10:07
  • "@style/Theme.Holo.Light" vs "@android:style/Theme.Holo.Light" - can you see the difference? – weston Feb 04 '15 at 10:23
  • former refers to your custom style.xml and late refers to androids default styles – vs.thaakur Feb 04 '15 at 12:44
  • Yeah, I noticed, thanks for the help. I think Android Studio was being a little buggy for me, I noticed that it wouldn't read my device even though it was plugged in, so I just decided to quit out of everything and retry it, and then the code seemed to work (-_____-) I guess it's still relatively new so it's not too unexpected. Sorry! – gazayas Feb 05 '15 at 05:44

1 Answers1

1

You can custom your theme and you can set Holo.Light over there just create a theme.xml file in /res/values. And write

<style name="CustomActionBarTheme"
    parent="@android:style/Theme.Holo">
</style>

GO over to manifest and set your custom theme.

Apurva
  • 7,871
  • 7
  • 40
  • 59