如何安装在Android Studio中的自定义库? [英] How do you install a custom library in android studio?

查看:257
本文介绍了如何安装在Android Studio中的自定义库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要做的就是这个参考两条单向格栅查看图书馆,并在使用控制我项目而不是标准的GridView控件。

What I want to do is reference this Two Way Grid View library and use the control in my project instead of the standard gridview.

这似乎并没有以任何方式(你可以编译Java / Android的库?)来进行编译,所以我想为它创造一个新的项目,然后加入到这个项目中的项目结构窗口的引用。这增加了整个文件夹复制到外部库节点,但我不能似乎能在其引用任何东西。

It doesn't seem to be compiled in any way (can you compile java/android libraries?), so I tried creating a new project for it and then adding a reference to this project in the Project Structure window. This added the whole folder to the External Libraries node, but I can't seem to be able to reference anything in it.

我不知道任何什么,我已经试过是正确的,那么可能会有人踩了我通过这个(非常基本的)任务吗?谢谢你。

I'm not sure that any of what I've tried is correct, so could someone step me through this (very basic) task? Thanks.

推荐答案

<一个href=\"http://stackoverflow.com/questions/16597092/how-to-clone-a-remote-git-repository-with-android-studio\">here's答案描述如何从GitHub通过机器人工作室克隆库。

here's an answer describing how to clone libraries from github via android studio.

你比必要通过这个库添加引用到您的项目:

you than need to add reference this library to your project through:

File -> Project  Structure -> Modules

这篇关于如何安装在Android Studio中的自定义库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆