Adam Johns
Adam Johns

Reputation: 36343

No resource found that matches the given name '@style/Theme.AppCompat.Light.DarkActionBar'

AndroidManifest.xml

<uses-sdk
    android:minSdkVersion="14"
    android:targetSdkVersion="17" />

I am using Android Studio (non gradle project), so no previous answers have been helpful to me.

In my styles.xml I am getting the error from the title on

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

enter image description here

Upvotes: 2

Views: 10071

Answers (2)

Adam Johns
Adam Johns

Reputation: 36343

I had several 3rd party libraries contained in my project. When I selected each of them and imported them as a module, the style error went away.

File > Project Structure > Modules > click + > import module > add each project folder as module

Upvotes: 1

Rod_Algonquin
Rod_Algonquin

Reputation: 26198

What you need is to copy the android-support-v7-appcompat.jar of your android-support-v7-appcompat from the libs folder of it, into your project folder libs.

After Right click on your project, select Build Path -> Configure build path.

Select Library Tab then Add Jar option and browse your android-support-v7-appcompat and click OK.

Lastly clean and build.

Upvotes: 0

Related Questions