Android Studio-从GitHub添加ownCloud库 [英] Android Studio - add ownCloud library from GitHub

查看:77
本文介绍了Android Studio-从GitHub添加ownCloud库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不明白如何添加此库( https://github.com/owncloud/android-library )添加到我在Android Studio中的项目中.

I don't understand how to add this library (https://github.com/owncloud/android-library) to my project in Android Studio.

推荐答案

我尝试将此库作为模块导入,但是在导入时发现错误: 错误:模块名称无效

I have tried to import this library as a module but found error while importing: Error: Module name is not valid

所以我试图找到一种解决方案,这里是:

So I tried to find a solution and here it is:

1.从Github下载库此处.

1. Download library from Github here.

2.解压缩库.

3.启动Android Studio.

4.转到文件"->新建"->导入模块".

5.转到提取的库所在的路径,然后选择它.

6.取消选中其他模块,然后添加下图所述的'androidlibrarymaster'.

6. Uncheck other modules and add 'androidlibrarymaster' described in below picture.

7.添加Gradle依赖关系及其完成!

  compile project(':androidlibrarymaster');

这篇关于Android Studio-从GitHub添加ownCloud库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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