我在配置我的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 repo中找到了这个:
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库?