如何在IntelliJ IDEA的导入slidingmenu?如何在、IntelliJ、slidingmenu、IDEA

2023-09-05 07:33:03 作者:俠骨柔情

我用的IntelliJ IDEA。正如你可能知道,进口 slidingmenu lib放到你的品牌的新项目是痛苦你在Eclipse上运行时。我做到了一次,但我用的IntelliJ IDEA的了,我不知道这是否有任何人知道如何导入并运行它成功地在使用的IntelliJ?这对我来说很重要。

I'm using intellij idea. As you may know, importing slidingmenu lib into your brand new project is painfully while you're running on eclipse. I did it once but I am using intellij idea anymore and I wonder that is there anybody know how to import and run it succesfully while using Intellij? It is very important to me.

推荐答案

我已经用例如prepared示例项目 SlidingMenu ActionBarSherlock 。您可以抓住它这里进行调查。在IDEA打开 SlidingMenu /例子项目并配置的Andr​​oid 4.1.2谷歌的API SDK。建立,在模拟器中进行测试运行。诀窍是正确设置的依赖,改变 *在几个库类的活动歇洛克·活动(每个指令在SlidingMenu项目页)。

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).

依赖设置如下:

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)