用于在 android 中拖放的 NineOldAndroids 库

问题描述:

我想在我的应用中使用拖放功能.所以我应该使用九个旧的安卓库.我在 GitHub 中搜索并找到了这个解决方案:https://github.com/JakeWharton/NineOldAndroids我也从这个站点下载了九个老Androids.2.4.0.jar".并将这个 jar 文件导入我的应用程序.但它不起作用.依赖"需要吗?你能帮我吗,我该怎么做?谢谢

i want to use Drag-and-Drop in my app. so I should use Nine Old Androids Library. I searchrd in GitHub and found out this solution: https://github.com/JakeWharton/NineOldAndroids I also download "Nine Old Androids.2.4.0.jar" from this site. and import this jar file to my app. but it doesn't work. does"dependency" need? would you please help me how can I do this? thanks

如果你使用 gradle

if you use gradle

在你的 build.gradle

in your build.gradle

repositories {
    mavenCentral()
}

dependencies {
    compile group: 'com.nineoldandroids', name: 'library', version: '2.4.0'
}