Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Importing drag-sort-listview library in Android Studio gradle project

Tags:

android

gradle

I'm trying to import the drag-sort-listview android library into my application in Android Studio. I had no problems using it with Eclipse before.

Git repository for library: https://github.com/bauerca/drag-sort-listview

like image 429
gilm Avatar asked Nov 10 '13 22:11

gilm


2 Answers

Nowadays, you can just add the dependency in your build.gradle as:

repositories {
    mavenCentral()
}

dependencies {
    compile 'asia.ivity.android:drag-sort-listview:1.0'
}
like image 166
Edu Zamora Avatar answered Oct 12 '22 21:10

Edu Zamora


All you need to do is to define the dependency on it in your build.gradle file.

repositories {
    mavenCentral()
}

dependencies {
    compile 'asia.ivity.android:drag-sort-listview-apklib:1.0@apklib'
}
like image 38
Benjamin Muschko Avatar answered Oct 12 '22 21:10

Benjamin Muschko