如何从github上的库中导入示例到android studio [英] How to import a sample from a library on github into android studio

查看:68
本文介绍了如何从github上的库中导入示例到android studio的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要迁移到android studio.

I'm going to migrate to android studio.

我想使用这个库:

https://github.com/alexvasilkov/FoldableLayout

我按照以下链接步骤导入了该库:

I followed below link steps to import this library :

https://github.com/MagicMicky/FreemiumLibrary/wiki/Import-the-library-in-Android-Studio

现在,我如何使用该项目的示例?

now, how can I use the sample of this project ?

我已经测试了以下步骤,但是没有用:

I've tested the following steps but did not work:

file =>导入项目

file => import project

.. \ 94 \ FoldableLayout-master \ FoldableLayout-master \ sample

..\94\FoldableLayout-master\FoldableLayout-master\sample

file =>导入模块

file => import module

.. \ 94 \ FoldableLayout-master \ FoldableLayout-master \ sample

..\94\FoldableLayout-master\FoldableLayout-master\sample

推荐答案

您应该将示例文件夹复制/粘贴到您的项目目录中,然后在 ../project/settings.gradle 中输入以下行文件:

You should copy/paste your sample folder into your project directory then enter below line in the ../project/settings.gradle file :

> incldue ':sample'

这篇关于如何从github上的库中导入示例到android studio的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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