Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Including the library #78

Open
isurum opened this issue Mar 28, 2017 · 2 comments
Open

Including the library #78

isurum opened this issue Mar 28, 2017 · 2 comments

Comments

@isurum
Copy link

isurum commented Mar 28, 2017

I tried to include the library. But I get the following error.

Error:(30, 13) Failed to resolve: com.github.wenchaojiang:AndroidSwipeableCardStack:0.1.5
Show in File
Show in Project Structure dialog

Project level build.gradle is,

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    repositories {
        jcenter()
        maven { url "https://jitpack.io" }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.3.0'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()

    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

And the app level build.gradle file is,

apply plugin: 'com.android.application'

android {
    compileSdkVersion 25
    buildToolsVersion "25.0.2"
    defaultConfig {
        applicationId "uk.co.stableweb.qi"
        minSdkVersion 16
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        vectorDrawables.useSupportLibrary = true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    compile 'com.android.support:appcompat-v7:25.3.0'
    compile 'com.android.support:design:25.3.0'
    compile 'com.android.support:support-vector-drawable:25.3.0'
    compile 'com.github.wenchaojiang:AndroidSwipeableCardStack:0.1.5'
    testCompile 'junit:junit:4.12'
}

I tried following version numbers.

0.1.5
0.1.6

Any suggestion is highly appreciated.

@fouadkada
Copy link

im also running into the same problem, I can include version 0.1.5 but not version 0.1.6(this version has a fix I'm interested in)
on jitpack.io the project page says that version 0.1.6 build fails

@wenchaojiang
Copy link
Owner

wenchaojiang commented Apr 2, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants