I have been going though the android tutorial on the developer site, and have run while trying to add actions to the Action bar (I am using the Support Library to support ve
Go to Java Build Path > Projects and remove the incorrect project dependency (your Android library project.) Note that in the "Android" section of the project settings the Android library that you're dependent on must be listed in the ~"Libraries" box.
maybe you can remove the android-support-v7-appcompat project from your build path. In Eclipse: - Right click into your project - Properties - List item - Java Build Path - Projects - under "Required projects on the build path:" --> select "android-support-v7-appcompat" and click "remove"
This have been solved the problem for me.
If your actionbar buttons aren't displaying properly when using Appcompat its possible that you're not using the right schema to configure your buttons.
If you're using Appcompat you need to use the schema as shown below on the "yourapp" fields for the API11+ settings such as showAsAction and actionLayout.
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:yourapp="http://schemas.android.com/apk/res-auto" >
<item android:id="@+id/action_search"
android:icon="@drawable/ic_action_search"
android:title="@string/action_search"
yourapp:showAsAction="ifRoom" />
...
</menu>
source: http://developer.android.com/guide/topics/ui/actionbar.html
I had the same issue (except my app crashed).
Basically, I just followed the Support Library Setup on the android site.
I had the following things wrong, and once fixed, the app ran as expected:
Once I fixed these things, I needed to remove and re-add the android-support-v7-appcompat project as a library (Project > Properties > Android > Library > Add)
Hope the link above helps anyone coming across this page.
In addition to above post! when create a library project check the checkbox "copy project into work space"