2015-03-25 44 views
0

我將遷移到android studio。如何從github上的庫導入樣本到android studio

我想使用這個庫:

https://github.com/alexvasilkov/FoldableLayout

我也跟着下面的鏈接步驟導入這個庫:

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

現在,我怎麼能使用這個樣本項目?

enter image description here

我測試過下面的步驟,但沒有奏效:

文件=>導入項目

.. \ 94 \ FoldableLayout主\ FoldableLayout主\樣本

file =>導入模塊

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

回答

1

您應該複製/粘貼示例文件夾到你的項目目錄,然後下面一行在../project/settings.gradle文件中輸入:

> incldue ':sample' 
0

文件=>打開=> ../Sample/Build.gradle

+0

我得到這個錯誤:找不到id爲'com.android.application'的插件。 – 2015-03-25 16:17:12

0

你可以把它放在ptoject文件夾中,轉到項目結構,導入模塊然後選擇樣本。

相關問題