0

i created an application on Eclipse and project shows like this : enter image description here

and in console error text is: C:\Users\shforoozan\workspace\MyTestApp\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'. C:\Users\shforoozan\workspace\MyTestApp\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.

Shahram
  • 215
  • 1
  • 6
  • 20

4 Answers4

1

Go to Help menu, and than install Android SDK.

Seven
  • 89
  • 6
0

You need to do next:

  • File->Import (android-sdk\extras\android\support\v7). Choose "appcompat"
  • Project-> properties->Android. In the section library "Add" and choose "appCompat"
  • That is all!

Thanks to: this

Community
  • 1
  • 1
Strider
  • 4,296
  • 3
  • 21
  • 33
0

change style in res folder

res >>> values >>> style and change theme to android:Theme.Light

else, import appcompat-v7 in your app

Devraj
  • 1,353
  • 1
  • 18
  • 41
0

You should import appcompat-v7 into your app,Theme.AppCompat.Light property is in appcompat-v7 and you can modify the style file in values-v11 andvalues-v14 , just like this

<style name="AppTheme" parent="android:Theme.Holo.Light">
</style>
adsion
  • 187
  • 3
  • 13