I followed these steps and did exactly the same:
http://www.slideshare.net/androidstream/action-bar-sherlock-tutorial
But the problem is this com_actionbarsherlock
has many errors in its src folder files.
most(or don't know if all) of the errors are like this:
The method onPreparePanel(int, View, Menu) of type _ActionBarSherlockTrojanHorse must override a superclass method
Library Manifest has this:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.actionbarsherlock"
android:versionCode="90"
android:versionName="4.1.0" >
<uses-sdk
android:minSdkVersion="4"
android:targetSdkVersion="14" />
</manifest>
and project build target is API 14
and my project manifest has this:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.sherlock"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="10" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/Theme.Sherlock">
<activity
android:name=".SherlockActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
and project build target is API 10
How to solve this??
Thank you
Quoting myself from a blog post from this week:
There are two ways to fix this.
For an individual project, you can go into Project > Properties, choose the “Java Compiler” category on the left, and change the value in the “Compiler compliance level” drop-down. Sometimes, this will be disabled, because you are using your workspace-level setting and are not overriding it at the project level. Sometimes, though, the project might be set to override it at the project level and have it set to 1.5. If you would prefer to not override it on a project where it is overridden, you can uncheck the “Enable Project Specific Settings” checkbox at the top of the dialog.
For your entire workspace, you can go to the Preferences window and choose Java > Compiler from the category tree on the left. Here, you will see another “Compiler compliance level” drop-down, one that controls the default for all of your projects.
Maintaining a consistent 1.6 compiler compliance level will clear up these @Override complaints.