My Android XML files cannot find ActionBarSherlock themes

I am trying to develop an application using ActionBarSherlock and everything works except for the theme. In particular, I can import com.actionbarsherlock.app.* , import com.actionbarsherlock.app.* SherlockActivity , but I always have this error in my manifest:

 Error: No resource found that matches the given name (at 'theme' with value '@style/Theme.Sherlock'). 

I know there were a lot of questions about this, but they did not work for me. I tried

  • Workspace Update
  • cleaning all my projects
  • putting a string in <activity> and <application>
  • setting my TargetSdkVersion and minSdkVersion for different values, both in my manifest and in ABS mode

and I tried the following options and possibly others:

  • android:theme="@style/Theme.Sherlock"
  • android:theme="@android:style/Theme.Sherlock"
  • theme="@style/Theme.Sherlock"
  • theme="@android:style/Theme.Sherlock"
  • theme="@theme/Theme.Sherlock"
  • theme="@android:theme/Theme.Sherlock"

It is worth noting that the autocomplete after I typed "@style/" didn’t show anything, so I tried to make my own style in styles.xml and then appeared, but still didn’t do anything from ActionBarSherlock.

Also, in styles.xml I tried to create my own theme for the Theme.Sherlock extension, and @style/Theme.Sherlock not found there when I tried to add it as a parent.

I tried to download samples, but got a JAR mismatch.

My conclusion is that somehow my xml files cannot access the ABS library, but I don’t understand how to fix it. Any help is greatly appreciated.

+6
source share
1 answer

In your Properties> Android project, do you include a link to the com_actionbarsherlock project? Properties with library reference

+13
source

Source: https://habr.com/ru/post/917316/


All Articles