在项目中使用android swipelistview [英] Using android swipelistview in project

查看:126
本文介绍了在项目中使用android swipelistview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在配置我的gradle脚本时遇到了麻烦,因此我可以使用 swipelistview控件。到目前为止,我的脚本是

I'm having troubles configuring my gradle script so that I can use the swipelistview control. My script so far is

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中发现了这个:

I haven't used gradle before so this script never worked as of yet, but I thought this would be a good time to start using it. Any help why this doesn't work? I found this in the 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
    }
}

但它不起作用,我得到这个错误信息:

But it doesn't work, i get this error message:

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库是什么?

Even if this works, what does maven download, the source or the jar library?

推荐答案

我认为示例代码是有线的。我已经制作了我自己的版本。您可以在此处找到它。

I think the sample code is kind of wired. I've make a version of my own. You can find it here

这篇关于在项目中使用android swipelistview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆