我创建了一个新的Android项目。我想有在顶部有一个操作栏,所以我下载了 操作栏的Android库 因为我想从Android 2.1系统支持设备。
描述说:
操作栏组件是一个图书馆项目。这意味着,没有必要对 复制粘贴的资源投入到自己的项目,只需 添加操作栏组件作为参考的任何项目。
我是新到Android所以这是什么意思?我如何可以将库添加到现有的项目?
导入库到Eclipse工作区:
文件 - >导入 - >常规 - >现有项目到工作区,下一步
选择根目录:/路径/到/工程
项目 - >选
在这一点上失败,因为没有什么选择和停用下一步按钮。
任何想法?
解决方案 文件 - >新建 - >其他 选择Android项目 选择从现有源创建项目 单击浏览按钮并导航到johannilsson,Android的动作条动作条 完成(在您的工作空间现在操作栏项目) 在您的项目右击 - >属性 在Android->库部分中单击添加 选择最近添加的项目 - >确定 这就是它!现在你可以使用它
![如何上传Android库项目的到JCenter](https://p.xsw88.cn/allimgs/daicuo/20230911/3856.png)
I have created a new android project. I want to have a action bar at the top so I downloaded the Action Bar for Android Library because I want to support devices from android 2.1.
The description says
The action bar component is an Library Project. This means that there's no need to copy-paste resources into your own project, simply add the action bar component as a reference to any project.
I am new to android so what does this mean? How can I add the library to my existing project?
Import the library into your eclipse workspace:
File->Import->General->Existing Projects into Workspace, Next
Select root directory: /path/to/project
Projects->Select All
At this point it fails because there is nothing to select and the next button is deactivated.
Any ideas?
解决方案 File->New->Other Select Android Project Select "Create Project from existing source" Click "Browse..." button and navigate to johannilsson-android-actionbaractionbar Finish (Now action bar project in your workspace) Right-click on your project -> Properties In Android->Library section click Add select recently added project -> Ok that's it!Now you can use it
相关推荐
最新文章