0

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
Saurabh Sharma
  • 2,422
  • 4
  • 20
  • 41
  • http://stackoverflow.com/questions/16636039/java-lang-classnotfoundexception-after-changing-nothing-in-the-project-but-upgra/16636127#16636127. try this. also check if there is conflict of jars. both sliding menu and actiobarsherlock may have the android-support-v4.jar – Raghunandan May 25 '13 at 04:57
  • @Raghunandan android-support-v4.jar conflicts have been resolved already – Saurabh Sharma May 25 '13 at 05:02
  • ydo you have any errors from what i see Cannot resolve Fragment Activity to FargmentChangeActivity. Something is wrong here. R.java will not be generated if there are errors in resource files – Raghunandan May 25 '13 at 05:05

3 Answers3

1

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.
Bucket
  • 7,415
  • 9
  • 35
  • 45
user2858924
  • 433
  • 5
  • 15
0

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.

Shadow
  • 6,864
  • 6
  • 44
  • 93
0

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.

Srikanth
  • 2,014
  • 19
  • 22