如何安装在Android Studio中的自定义库?自定义、安装在、Android、Studio

2023-09-07 23:15:21 作者:蘇黎世↘

我想要做的就是这个参考两条单向格栅查看图书馆,并在使用控制我项目而不是标准的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.

推荐答案

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