android - Error retrieving parent for item: 'Theme.AppCompat.Light' in eclipse -


I am trying to use ActionBarActivity in my project as per the notification android-support-v7-appcompat in the workspace I have imported

I can add Epikapat as a library to my existing project (eclipse).

green tick mark found ​​

and now there is no error When I use the following import statement.

  Import android.support.v7.app.ActionBarActivity;  

And when I increase my class with ActionBarActivity

  Public Class MyClass Enforces ActionBarActivity ActionBarListener {....}  <

  & lt; Activity Android: name = ". Activity 1" Android:  

However, I get an error when using app compat style. Label = "@ string / app_name" Android: ScreenErmentation = "Portrait" Android: Theme = "@ Style / Aaptim" & gt; .... & lt; / Activity & gt;

in styles.xml,

  & lt; Style name = "Aaptim" parent = "appbashtheme" & gt; & Lt ;! - All customizations that are not specific to a particular API-level can go here. - & gt; & Lt; / Style & gt; & Lt; Style name = "appbashtheme" parent = theme "AppCompat.Light" & gt; & Lt ;! - API 11 theme customization can go here - & gt; & Lt; / Style & gt;  

I get the following error in styles.xml when using parent = "Theme.AppCompat.Light" **: Error: Error retrieving parent for item: no Resource did not match which matches the given name 'Theme.AppCompat.Light'. **

Why I am not able to use resources from the apppamp support library

Ps: I have not used android: ShowAsAction = "never"

Both of my application projects and etiquette are in the same folder (both of me Has been copied to the existing workspace).

Try changing your style.xml with

  & Lt; Style name = "apple theme" original = "Android: theme light" & gt; Instead of  

  & lt; Style name = "appbashtheme" parent = theme "AppCompat.Light" & gt;  

Comments