How to import slidingmenu on Intellij Idea?

好久不见. 提交于 2019-11-30 02:31:59

I've prepared the sample project using example from the SlidingMenu and ActionBarSherlock. You can grab it here for investigation. Open SlidingMenu/example project in IDEA and configure Android 4.1.2 Google APIs SDK. Build, run in the emulator to test. The trick was to set the dependencies properly and to change *Activity to Sherlock*Activity in several library classes (per instructions on the SlidingMenu project page).

Dependencies are set as follows:

example (main app)
  library (SlidingMenu)
    abs (ActionBarSherlock) (make sure Export is enabled)
      android-support-v4.jar (make sure Export is enabled)
      junit (for ActionBarSherlock tests)

I just want to add my solution if someone doesn't want to use CrazyCoder code. This solution's using IntelliJ on Mac OS X. Here's the steps for noob:

  1. Go to File > Import Module. Select the root directory of your downloaded unzipped SlidingMenu
  2. After importing module, go to File > Project Structure. Select 'Modules' under 'Project Settings', and then select your project name. Select Dependencies tab and click '+' sign and choose 'Module Dependency' and pick SlidingMenu module.
  3. If your project name's module has android-support-v4.jar's dependency, remove that since SlidingMenu has that dependency already
  4. Select SlidingMenu module and enable export for android-support-v44 (android-support-v4.jar)
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!