Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No resource found when using style Theme.Sherlock

I am trying to use Sherlock. The steps that I did bring up the library of abc to my project while my project min sdk 2.2 and max api 15. the problem is that I can't set up the style to use it. the error

Error retrieving parent for item: No resource found that matches the given name '@style/  Theme.Sherlock'.

my code of xml:

<resources>

    <style name="AppTheme" parent="@style/Theme.Sherlock" />

</resources>

my manifest file:

  <application
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme">

the java that I use is 1.6. I am running 4.0.3 avd. I know that you will give me a link for webs but I didn't find anything that can help. I am using eclipse and Sherlock 4.0.3.If you can give me the solution how to do it simple way with instructions.

update: I don't know why but when I do import library abc in my project it looks ok but when I click apply and exit the settings after that return to library, I see red x.

thanks.

like image 412
Vitaly Menchikovsky Avatar asked Nov 13 '12 16:11

Vitaly Menchikovsky


1 Answers

"I don't know why but when I do import to library on my project the ABC its with look OK but when I click apply and exit the settings after that return to library and see red x." This happens when the library file is not in the same workspace or directory as your project is in. 1.Try copying the library to same workspace, 2. import it to eclipse 3. apply it to your project.

I hope that will solve your problem.

and in manifest

<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/Theme.Sherlock"
>
like image 115
Atif Farrukh Avatar answered Sep 23 '22 18:09

Atif Farrukh