简体   繁体   中英

How to add a github library to my android project?

I would like to add this library so that I can use it on my android project but I can't figure out how to. I get that I'm supposed to clone it but it doesn't say into which directory I should clone it. I'm also not sure if I should use ant or maven, what those are, and how to do that. Any help would be appreciated.

This is the project I'm hoping to add it to: https://github.com/mikeoles/swiftset

One more project i which is forked from bauerca/drag-sort-listview is available for drag-sort-listview and dependency of that project is deployed on maven repository

https://github.com/ened/drag-sort-listview

Gradle is available on mvn repository. check this URL

https://mvnrepository.com/artifact/asia.ivity.android/drag-sort-listview/1.0

Add this to your android project

compile group: 'asia.ivity.android', name: 'drag-sort-listview', version: '1.0'

this project is not a library project instead it is an Android app project so what you have to do is to clone the repo https://github.com/mikeoles/SwiftSet.git and open this as an existing Android project. FYI, you can check android project structure at this link https://developer.android.com/studio/projects/ .

You can make the library support gradle. Or copy code to you project(the project has no update in last 5 years).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM