【问题标题】:where to find library dependencies for android studio在哪里可以找到 android studio 的库依赖项
【发布时间】:2016-03-04 14:20:35
【问题描述】:

我是 Android 开发的新手,目前正在查看 github 上的一个库,用户可以在其中拖动和滑动项目。该项目使用的外部库来自:

导入 co.paulburke.android.itemtouchhelperdemo.helper.OnStartDragListener;

我知道在 Eclipse 中我可以只导入 jar 文件,这样导入就可以了,但是在 android studio 中,我通常会更新 gradle 文件中的依赖项,但是我不知道这个库的位置。有没有使用这个库的替代方法,或者找到它的方法?该链接是我目前正在使用的项目

https://github.com/iPaulPro/Android-ItemTouchHelper-Demo

【问题讨论】:

标签: android android-studio dependencies


【解决方案1】:

您要查找的类包含在项目本身中:

https://github.com/iPaulPro/Android-ItemTouchHelper-Demo/tree/master/app/src/main/java/co/paulburke/android/itemtouchhelperdemo/helper

当库具有(外部)依赖项时,它们会在自己的 gradle.build 文件中声明它们自己(传递依赖项),您不必关心这一点。

build.gradle 文件中声明的库工件通常存储在Maven CentraljCenter

【讨论】:

    猜你喜欢
    • 2013-01-24
    • 2017-06-12
    • 2011-10-13
    • 2018-10-07
    • 2015-08-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多