Possible duplicate of Can't Find Theme.AppCompat.Light for New Android ActionBar Support but here solution is only for ecllipse, How to solve this error in IntelliJ IDEA ? Please explain step by step.
Asked
Active
Viewed 2,117 times
0
-
Did you include the appcompat library correctly? – Ahmad Dec 26 '13 at 20:45
-
jar file dependency is not enough because appcompat contains also resources. You should have aar, apklib dependency or include it from Android SDK as project – Eugen Martynov Dec 26 '13 at 20:54
2 Answers
3
You only included the jar. But jars do not include resources (and therefore not the theme Theme.AppCompat.Light
). You have to either include the whole lib with its resources (you can find it in your sdk folder in the extras folder) or you include it with gradle like @MichaelBarany already suggested.

Ahmad
- 69,608
- 17
- 111
- 137
2
Do you have the dependency in your build.gradle
?
dependencies {
compile "com.android.support:appcompat-v7:19.0.+"
}

Michael Barany
- 1,639
- 1
- 12
- 15