与Android工作室安装ActionbarSherlock? [英] Installing ActionbarSherlock with Android Studio?
问题描述
其他许多Android开发者我安装了Android的工作室,但我怎么安装actionbarsherlock到Android的工作室?
As many other Android Developers I installed Android Studio, but how do I install actionbarsherlock into Android Studio?
任何帮助吗?我不知道在哪里甚至开始。
Any help? I have no idea where to even start.
推荐答案
我也有一个问题让ActionBarSherlock运行。我有一个现有的项目,但它听起来像是你只是想ABS从零开始。以下是一步做什么步说明:
I also had a problem getting ActionBarSherlock running. I had an existing project, but it sounds like you simply want ABS From scratch. Here are step by step instructions of what to do :
1)下载ABS这里: http://actionbarsherlock.com/
2)摘录ABS,你应该在那里建立目录actionbarsherlock。复制到Android Studio工作空间。并重新命名为 ActionBarSherlock(改变外壳)
- >我现在已经在我的Android Studio项目\\ *文件* \\ Android的工作区\\
相对于 \\ Eclipse工作区\\
2) Extract ABS, you should have a directory in there called "actionbarsherlock". Copy that to your Android Studio workspace. and rename to ActionBarSherlock (changed casing)
-- > I now have my Android Studio Projects under \*documents*\Android Workspace\
As opposed to \Eclipse Workspace\
所以,你现在应该有这样的:
So you should now have something like :
\\ *文件* \\ Android的工作区\\ ActionBarSherlock \\
随着您的主项目可能:
\\ *文件* \\ Android的工作区\\ TestProject \\
3)打开Android Studio中加载你的 TestProject
然后转到文件>导入模块..
。现在导航到ActionBarSherlock在 \\ *文件* \\ Android的工作区\\ ActionBarSherlock \\
点击确定和下一步所有完成的方式。它会问,如果你想设置一个依赖关系到新的模块(或者至少是我的一样),然后单击确定
3) Open Android Studio load your TestProject
then goto File> Import Module..
. Now navigate to ActionBarSherlock under \*documents*\Android Workspace\ActionBarSherlock\
Click Ok and next all the way to finish. It will ask if you want to set a dependancy to the new Module (or at least mine did) click OK
4)什么我发现在这一点上是编译我得到的 \\ ActionBarSherlock错误\\测试\\当
抱怨的Junit
。我只是从下项目视图我ABS模块删除 \\测试\\
目录。 右键单击\\测试\\>删除...
4) What i found at this point is that when compiling I was getting errors in \ActionBarSherlock\test\
complaining about Junit
. I simply deleted the \Test\
directory from my ABS Module under project view. Right click \test\ > Delete...
5)您现在应该能够没有错误编译:)
5) you should now be able to compile without errors :)
希望这可以帮助别人。
从本质上讲,虽然,我需要重新下载一个完全新鲜的ABS,删掉我的老项目的ABS(这可能是很旧),然后导入模块...
Essentially though, I needed to re-download a completely fresh ABS, expunge my old project's ABS (which was probably quite old) then Import Module...
编辑:这是写了一段时间前,所以我不知道它是今天的相关性,但保罗在评论中提到尝试这些步骤,也有一般的导入库中读取到ABS线程在这里 - - > <一个href=\"http://stackoverflow.com/questions/16588064/how-do-i-add-a-library-project-to-the-android-studio\">How做我添加一个库项目到Android工作室?
This was written a while ago so I'm not sure how relevant it is today, but as Paulo mentions in the comments try these steps, and also have a read of the general import library to ABS thread over here --> How do I add a library project to the Android Studio?
这篇关于与Android工作室安装ActionbarSherlock?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!