nickbutcher / plaid

An Android app which provides design news & inspiration as well as being an example of implementing material design.
Apache License 2.0
16.26k stars 3.16k forks source link

Gradle sync failed: Could not find method implimentation() for arguments [com.github.bumptech.glide:glide:4.11.0] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. Consult IDE log for more details (Help | Show Log) (684 ms) #839

Open herob59 opened 3 years ago

herob59 commented 3 years ago

apply plugin: 'com.android.application'

android { compileSdkVersion 30 buildToolsVersion '25.0.3'

defaultConfig {
    applicationId "com.hero.gadprojectaad"
    minSdkVersion 26
    targetSdkVersion 30
    versionCode 1
    versionName "1.0"

    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
    }
}
compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}

}

dependencies { implementation fileTree(dir: "libs", include: ["*.jar"]) implementation 'androidx.appcompat:appcompat:1.2.0' implementation 'androidx.constraintlayout:constraintlayout:2.0.1'

///Image Library for image loading and caching

apply plugin: 'maven'
implimentation  'com.github.bumptech.glide:glide:4.11.0'
//Glide V4 uses this new annotation processor
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
//volley
implementation 'com.android.volley:volley:1.1.1'
implimentation  "androidx.lifecycle:lifecycle-extensions:2.2.0"
implementation "com.squareup.retrofit2:retrofit:2.9.0"
implimentation  "com.squareup.retrofit2:converter-gson:2.9.0"
implementation 'androidx.recycleview:recycleview:1.1.0'
implimentation  'com.google.android.material:material:1.2.1'
implimentation  'androidx.cardview:cardview:1.0.0'

}

herob59 commented 3 years ago

Gradle sync failed: Could not find method implimentation() for arguments [com.github.bumptech.glide:glide:4.11.0] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

herob59 commented 3 years ago

am having a problem in the code , i need help

amrgen81 commented 3 years ago

use api instead of implementation

api 'com.github.bumptech.glide:glide:4.11.0'

MadhuriTratiya commented 5 months ago

Thank you so much for suggesting to use api 'com.github.bumptech.glide:glide:4.11.0' it's working in error Could not find com.github.bumptech:glide:compiler.