ActionBarSherlock not working in eclipse

I am trying to get an ActionBarSherlock ( http://www.actionbarsherlock.com ) while working with my eclipse projects. I added ABS to the new project with the target version 3.2, and it created a beautiful one. When I try to add this as a library to my other project (min. Version 2.1, target 3.2), I get errors like

G:\EclipseWorkspace\Android\ActionBarSherlock2\res\values-v11\abs__styles.xml:65: error: Error: No resource found that matches the given name: attr 'android:windowActionModeOverlay' 

basically, none of the xml attributes found in version 3.0 or higher are recognized. As a result, R.java does not generate.

Am I doing something wrong?

+4
source share
3 answers

You need to compile with Android 3.2 in addition to targeting at least API 11 both in your application and in the library.

In the eclipse, right-click on the project and go to "Properties". On the Android tab, you need to select Android 3.2.

+3
source

Eclipse also gives me strange errors when implementing external libraries. Which always helped me after some attempts:

try a few times:

* rightclick on your project => Source => Clear * delete and read the library project * restart eclipse several

You can also try to delete the generated files to force them to regenerate, but do it at your own peril and risk :)

have fun with open source libraries :)

+2
source

Try updating sdk version and target version 2.1:

 <uses-sdk android:minSdkVersion="7" android:targetSdkVersion="15"/> 

This will allow you to use the latest sdk functions, and the application will work with version 2.1.

You may see problems even after fixing this. Then you can clear the project.

+1
source

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


All Articles