I am trying to install my app on the emulator. According to docs, I should do this:
ant debug
adb install bin/MyFirstApp-debug.apk
But that ant debug
is giving me this error:
No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
I read some threads and did what they suggested. i.e.:
1. I checked that Android Support Repository is installed in SDK Manager.
2. Included the following in my build.gradle file:
compile 'com.android.support:appcompat-v7:22.2.0'
compile fileTree(include: ['*.jar'], dir: 'libs')
still get the same error.
How can I fix it?
UPDATE:
My styles.xml:
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
</style>
</resources>