问题描述
我正在尝试导入 android-swipelistview (https://github.com/47deg/android-swipelistview) 使用 gradle 进入我的 Android Studio 模块.这不应该单独使用 build.gradle 配置吗?有没有人有完成这项工作的配置文件?
I am trying to import android-swipelistview (https://github.com/47deg/android-swipelistview) into my Android Studio module using gradle. Shouldn't this be possible with build.gradle config alone? Does anyone have a config file(s) that does the job?
推荐答案
您可以使用:
compile 'com.nineoldandroids:library:2.4.0'
或者如果您将库复制到您的项目 libs 目录,您可以使用:
or if you have the library copied to your project libs directory, you can use:
compile files ('libs/ nineoldandroids-2.4.0.jar')
但是,您可以查看我关于 swipelistview 入门的帖子:http://modewagon.wordpress.com/2013/09/16/getting-started-with-swipelistview/
However, you can check out my post on getting started with swipelistview:http://modewagon.wordpress.com/2013/09/16/getting-started-with-swipelistview/
这篇关于如何使用 gradle 在 Android Studio 中导入远程库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!