gpt4 book ai didi

android - 在项目中使用android swipelistview

转载 作者:太空狗 更新时间:2023-10-29 12:42:51 26 4
gpt4 key购买 nike

我在配置我的 gradle 脚本时遇到问题,因此我无法使用 swipelistview control .到目前为止我的脚本是

apply plugin: 'maven'

buildscript {
repositories {
maven { url 'http://clinker.47deg.com/nexus/content/groups/public' }
}

dependencies {
compile 'com.fortysevendeg.swipelistview:swipelistview:1.0-SNAPSHOT@aar' {
transitive = true
}
}
}



dependencies {
compile files('libs/android-support-v4.jar')
compile files('libs/gson-2.2.4.jar')
compile files('libs/osmdroid-android-4.0.jar')
compile files('libs/slf4j-android-1.5.8.jar')
}


apply plugin: 'android'

android {
compileSdkVersion 19
buildToolsVersion "19.0.0"
}

我之前没有使用过 gradle,所以这个脚本到目前为止还没有用过,但我认为现在是开始使用它的好时机。任何帮助为什么这不起作用?我在 swipelistview 仓库中找到了这个:

Gradle

repositories {
maven { url 'http://clinker.47deg.com/nexus/content/groups/public' }
}

dependencies {
compile ('com.fortysevendeg.swipelistview:swipelistview:1.0-SNAPSHOT@aar') {
transitive = true
}
}

但它不起作用,我收到此错误消息:

Could not find method com.fortysevendeg.swipelistview:swipelistview:1.0-SNAPSHOT@aar() for arguments [build_6ihucgurhldpf4gn6mjtnvcq7e$_run_closure1_closure3_closure5@57352cf2] on org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler_Decorated@510eb04b.

就算这样行,maven下载的是什么,源码还是jar库?

最佳答案

我认为示例代码有点连线。我做了一个我自己的版本。你可以找到它here

关于android - 在项目中使用android swipelistview,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22834115/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com