Unable to resolve errors on sliding menu example w

2019-09-05 13:22发布

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

  • I am using Eclipse 22.0.0 and recent version of Android SDK

3条回答
The star\"
2楼-- · 2019-09-05 13:44

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.
查看更多
Viruses.
3楼-- · 2019-09-05 13:48

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.

查看更多
beautiful°
4楼-- · 2019-09-05 13:57

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.

查看更多
登录 后发表回答