Cult icon indicating copy to clipboard operation
Cult copied to clipboard

Failed to Resolve dependencies

Open helmifluida opened this issue 9 years ago • 10 comments

Please Help me ?

helmifluida avatar Jun 21 '15 09:06 helmifluida

@helmifluida Sorry for the time, I'm at a big project now and I don't have too much time. But... Your Android Studio is at online mode? Did you use this at your gradle?

repositories {
    maven {
        url "https://jitpack.io"
    }
}

dependencies {
    compile 'com.android.support:appcompat-v7:22.1.1'
    compile 'com.github.ppamorim:cult:0.1.5'
}

I've tested here and works. Can you show your gradle file?

ppamorim avatar Jun 25 '15 00:06 ppamorim

this worked when i added.

repositories {
    maven {
        url "https://jitpack.io"
    }
}

ch-muhammad-adil avatar Sep 20 '15 10:09 ch-muhammad-adil

@ch-muhammad-adil can help me i am facing same problem? if possible please share your build.gradle file

shaikhriyaz434 avatar Mar 31 '16 11:03 shaikhriyaz434

in your app's build.gradle

add these lines simple

repositories { maven { url "https://jitpack.io" } }

dependencies { compile 'com.android.support:appcompat-v7:22.1.1' compile 'com.github.ppamorim:cult:0.1.5' }

ch-muhammad-adil avatar Mar 31 '16 11:03 ch-muhammad-adil

here is my app's build.gradle file

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.3"

    defaultConfig {
        applicationId "com.example.root.myapplication"
        minSdkVersion 15
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}
repositories {
    maven {
        url "https://jitpack.io"
    }
}
dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.2.1'
    compile 'com.android.support:design:23.2.1'
    compile 'com.squareup.picasso:picasso:2.5.2'
    compile 'com.github.ppamorim:cult:0.1.5'
}

shaikhriyaz434 avatar Apr 01 '16 05:04 shaikhriyaz434

Ok Then remove this from here repositories { maven { url "https://jitpack.io" } }

try to add it inside project build.gradle file.

buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:1.5.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } }

allprojects { repositories { jcenter() maven { url "https://jitpack.io" } } }

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

ch-muhammad-adil avatar Apr 01 '16 05:04 ch-muhammad-adil

I am sure it will work now.. Good luck

ch-muhammad-adil avatar Apr 01 '16 05:04 ch-muhammad-adil

No it is not working but thank you for help. Do you know any other option for this library.

shaikhriyaz434 avatar Apr 01 '16 05:04 shaikhriyaz434

Sorry, I don't know at moment . :-) you can make your own . i have tried this library it is not even good one, its result are horrible at lollipop. I forget where is that source code otherwise i could have send you.

ch-muhammad-adil avatar Apr 01 '16 05:04 ch-muhammad-adil

ok thanks i will try to make my own. thanks again.

shaikhriyaz434 avatar Apr 01 '16 05:04 shaikhriyaz434