Set up Slidemenu – example not working

I’m trying to use the SlideMenu library with ActionBarSherlock.
https://github.com/jfeinstein10/SlidingMenu

http://actionbarsherlock.com/

  • Camera Surface View Images Look Stretched
  • Android: OnTouch, MotionEvent.ACTION_MOVE is not recognized?
  • Android GCM (push notification): device doesn't receive notification if application is stopped
  • android unable to use hdmi in creative tab and need to be notified in all(maximum) devices as soon as hdmi is plugged
  • SensorEventListener in separate thread
  • What are open source ffmpeg players for iOS/Android?
  • I had not issue installing actionbarsherlock and run the examples provided.
    But, can’t do the same with the example og the SlideMenu library 🙁

    I can set up the library fine (or so i think) without errors (under eclipse with jre6).

    For the slidemenu example, i created the project, and added com_actionbarssherlock.jar as a “referenced libraies”.

    But i have lots of :
    – R cannot resolve erros ;
    – can’t overrides some methods erros;
    – methods from actionbarsherlock are not recognized ; ex : “The method getSupportActionBar() is undefined for the type BaseActivity”
    – can’t load style from actionbarsherlock erros.

    It is as if the project doesn’t see the classes from actionbarsherlock.

    Thanks for any help.

    enter image description here

    Related posts:

    How to use onSavedInstanceState example please
    Android Studio Gradle Error at Compile Time
    embed version details in android APK
    How to get the user Home/Work location for a user in Android
    Updating my google play “What's new” section
    How to hide progressbar in Android?
  • App loads with white screen for 3 secs before showing proper UI - using fragments (no webview)
  • Cannot determine whether Google play store is installed or not on Android device
  • Android properties that can be animated with ObjectAnimator
  • Android Deep Linking issue ! How to use Custom Url scheme myapp://some_data
  • Image Editing Library for Android
  • How do I interact with Google Docs from Android?
  • 3 Solutions collect form web for “Set up Slidemenu – example not working”

    For the error

    “The method getSupportActionBar() is undefined for the type BaseActivity”

    Inside the SlidingMenu library, edit the class SlidingFragmentActivity to extend SherlockFragmentActivity (like below). Then clean and rebuild, this method should now be found.

    public class SlidingFragmentActivity extends SherlockFragmentActivity implements SlidingActivityBase {
    

    Source

    Look add Problems tab to see there are any error ?
    Right click your project and check your all Libraries.
    If everthing ok, try to clean your project.

    There are lots of issues on github with that bug. Mrcb123’s solution works, but I suppose it will be good to separate example ABS dependency from library.

    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.