问题描述
我用的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 /例子
项目并配置的Android 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)
这篇关于如何在IntelliJ IDEA的导入slidingmenu?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!