Soru & Cevap

Could not find method implementation() for arguments Hatası ...

31.08.2019 - 10:26

Android 9.0 çıktığından bu yana bu hatayı çözemedim projemi güncellemiyorum birtürlü 


ERROR: Could not find method implementation() for arguments [directory 'libs'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

Bu Hatayı veriyor ne yaptıysam olmadı implementation olarak değiştirdim türkçe karakter denedim bilgisayar dilini indilizce 3.2.1 sürümü yaptım hiç biri olmadı


buildscript {
    repositories {
        maven { url 'https://plugins.gradle.org/m2/' }
    }
    dependencies {
        classpath 'gradle.plugin.com.onesignal:onesignal-gradle-plugin:[0.11.0, 0.99.99]'
    }
}
apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin'
apply plugin: 'com.android.application'
repositories {
    maven { url 'https://maven.google.com' }
}
android {
    compileSdkVersion 28
    buildToolsVersion "27.0.3"
    defaultConfig {
        applicationId 'com.asgjdvmg.dfg'
        minSdkVersion 15
        targetSdkVersion 28
        versionCode 20
        versionName '20'
        android {
            defaultConfig {
                manifestPlaceholders = [
                        onesignal_app_id               : '4780ae15-dcf4-4d5c-a4c9-7ffaa9e75456',
                        // Project number pulled from dashboard, local value is ignored.
                        onesignal_google_project_number: '654856245624785'
                ]
            }
        }

    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    productFlavors {
    }
}
/* IMPORTANT :
 * Be careful when update dependencies, different version library may caused error */
dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
   testImplementation 'junit:junit:4.12'
    // google library
    implementation 'com.android.support:appcompat-v7:25.3.1'
    implementation 'com.android.support:cardview-v7:25.3.1'
    implementation 'com.android.support:recyclerview-v7:25.3.1'
    implementation 'com.android.support:design:25.3.1'
    implementation 'com.android.support:support-v4:25.3.1'
    implementation 'com.google.android.gms:play-services-ads:9.2.1'
    implementation 'com.google.android.gms:play-services-analytics:9.2.1'
    implementation 'com.google.android.gms:play-services-gcm:9.2.1'
    implementation 'com.google.android.gms:play-services-location:9.2.1'
    // library for api
    implementation('com.squareup.retrofit2:retrofit:2.0.0-beta4') {
        exclude module: 'okhttp'
    }
    implementation 'com.squareup.okhttp3:okhttp:3.2.0'
    implementation 'com.squareup.okhttp3:logging-interceptor:3.0.1'
    implementation 'com.squareup.retrofit2:converter-gson:2.1.0'
    implementation 'com.squareup.picasso:picasso:2.5.2'
    // ripple effect library
    implementation 'com.balysv:material-ripple:1.0.2'
    implementation 'com.android.volley:volley:1.0.0'
    implementation project(path: ':giraffeplayer')
    implementation 'com.onesignal:OneSignal:3.11.3'
}
apply plugin: 'com.google.gms.google-services'
 

-----------------------------------------------

 


// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    repositories {
        jcenter()
        google()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.3.3'
        classpath "io.realm:realm-gradle-plugin:1.1.1"
        classpath 'com.google.gms:google-services:3.0.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
}
allprojects {
    repositories {
        google()
        maven {
            url "https://maven.google.com"
        }
        jcenter()
    }
}

121 Görüntülenme

1 Cevap

Sitedeki sorulara cevap verebilmek için giriş yapın ya da üye olun.

Profile picture for user merttulumen1996
merttulumen1996
31.08.2019 - 06:10

app seviyesinde gradle dosyasının en altına testImplementation() yazan 3 tane kod var ordaki ı harflerini i olarak değiştir

"testİmplementation()" olarak.