Solivan
Solivan

Reputation: 735

failed to resolve gradle error

that is my build.gradle:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId "com.example.mabna.hearthurt"
        minSdkVersion 14
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    lintOptions {
        abortOnError false
    }

}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.1.0'
    compile 'com.android.support:support-v4:23.1.0'
//    compile 'com.github.traex.rippleeffect:library:+'
//    compile 'com.balysv:material-ripple:1.0.2'
    compile 'com.squareup.picasso:picasso:2.5.0'
}

but this error occured: error(32,13) failed to resolve: com.squareup.picasso:picasso:2.5.1 also for: compile 'com.github.traex.rippleeffect:library:+' compile 'com.balysv:material-ripple:1.0.2' and other external dependencies error occured. i have sample of com.github.traex.rippleeffect:library:+ and com.squareup.picasso:picasso:2.5.1 and other dependencies compiled with no error. so what is the problem

Upvotes: 0

Views: 917

Answers (1)

IntelliJ Amiya
IntelliJ Amiya

Reputation: 75778

At First Remove + calling from Gradle

Do

compile 'com.github.traex.rippleeffect:library:1.3'
compile 'com.android.support:appcompat-v7:23.1.0' // Instead yours

Edit

Call multiDexEnabled true

defaultConfig {


    // Enabling multidex support.
    multiDexEnabled true
}

Then Clean-Rebuild-Sync in your Project.

Dependencies is a virtual folder where IDE shows what JAR files the project depends on.

@Solivan I guess it's packaging bug . Whenever you create a new project then this bugs omitted .

Upvotes: 3

Related Questions