Saurabh Sharma
Saurabh Sharma

Reputation: 2472

Unable to resolve errors on sliding menu example with actionbarsherlock

Hi I am a newbie to android and I am trying to run the Sliding Menu Example but i am getting so much errors

I have downloaded the package from here: http://github.com/jfeinstein10/SlidingMenu/

and setup the actionbarsherlock

Also followed the instructions listed over here: http://boroniatechnologies.com/installing-slidingmenu-android-library-and-example/

and i am getting the following errors:

enter image description here

Upvotes: 0

Views: 1315

Answers (3)

user2858924
user2858924

Reputation: 433

try this...

  • add actionbarsherlock library to slidingmenu library
  • in your project libraries, use only sliding menu library, not actionbarsherlock.
  • delete the android support library in libs folder in slidingmenu library, and in libs folder in your project
  • and clean all projects, and try it.

Upvotes: 1

Srikanth
Srikanth

Reputation: 2114

The usual suspect for such errors is the minSdk/targetSdkVersion of your Android project. Try minSdkVersion of 7 and targetSdkVersion 17 (latest as of now). That is, your AndroidManifest.xml should be having this line

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

And also, from project properties, set Android 4.2 (latest as of now) as the target. Project properties -> Android -> target:4.2

That should solve it. But, if you are still getting errors (on account of different versions of SlidingMenu), experiment with higher minSdkVersion.

Upvotes: 0

Shadow
Shadow

Reputation: 6899

If you have updated SDK means,

select project->right click->go to properties->order and export>select Android Private Libraries. Click Ok.

Clean the project and run it.

Upvotes: 0

Related Questions