I used ActionBar Style Generator, and now trying to use into my app, but getting :
error: Error retrieving parent for item: No resource found that matches the given name '@style/ Theme.AppCompat.Light.DarkActionBar'.
i am using android-support-v7-appcompat.jar lib inside libs folder
my target is to make my app compatible 2.3 or above
Using Visual Studio 2015 (Windows7) + Xamarin had this error and after trying multiple things (installing packages, download android_m2repository_r10.zip...) ended removing the full Xamarin folder inside
After that, Rebuild the application in VS and errors disappeared.
Android support library
in extra's..\sdk\extras\android\support\v7\appcompat\res\values
on Windows). Somewhere in there is athemes.xml
andthemes_base.xml
. Copy both of these files.For anyone out there using VS2015, I was getting this error too, and it turns out I hadn't added the library to the project...
I had this same problem. None of the solutions listed here helped my situation. As it turns out, I was importing the parent folder for a project into Android Studio 1.5, rather than the project folder itself. This threw Gradel into a tizzy. Solution was to import the project folder instead.
In my case, I took an
android
project from one computer to another and had this problem. What worked for me was a combination of some of the answers I've seen:Mine ran fine after these steps.
This worked for me... in Android Studio...