Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

Failed to resolve: play-services-ads

I updated my Android Studio to 3.2.1 I am getting this error.

Failed to resolve: play-services-ads

Project Gradle:

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.3'//2.2.3

        classpath 'com.google.gms:google-services:4.0.1'//3.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()

    }
}

I don't know how to solve this problem. I think it is not big problem but it occured. How can I solve? Any response. Thanks..

In fact, yesterday there was no problem I getting this error after updating.

App Gradle:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 27
    buildToolsVersion '28.0.3'

    defaultConfig {
        applicationId "grkn.ctk.enreto"
        minSdkVersion 15
        targetSdkVersion 26
        versionCode 19
        versionName '2.2.0'
        manifestPlaceholders = [onesignal_app_id: "0755a6be-9f2d-44cd-8421-0732f9c6522f",
                                // Project number pulled from dashboard, local value is ignored.
                                onesignal_google_project_number: "922468191779"]

    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    productFlavors {
    }
    aaptOptions {
        cruncherEnabled = false
    }
}

repositories {
    maven { url 'https://maven.google.com' }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.mcxiaoke.volley:library:1.0.18'
    implementation 'com.github.chrisbanes.photoview:library:1.2.3'
    implementation ('com.facebook.android:facebook-android-sdk:4.0.1'){
        exclude group:"com.google.android.gms"
    }

    //4.0.1
    implementation 'com.google.android.gms:play-services-ads:12.0.1'//11.8.0

    //compile 'com.google.android.gms:play-services-ads:11.2.2'

    implementation 'com.pkmmte.view:circularimageview:1.1'
    implementation 'com.melnykov:floatingactionbutton:1.3.0'
    implementation 'com.squareup.okhttp:okhttp:2.5.0'
    implementation 'com.github.bumptech.glide:glide:3.7.0'
    //compile 'com.android.support:appcompat-v7:26.1.0'

    implementation 'com.android.support:appcompat-v7:27.1.0'
    implementation 'com.android.support:cardview-v7:27.1.0'
    implementation 'com.android.support:recyclerview-v7:27.1.0'
    implementation 'com.android.support:design:27.1.0'
    implementation 'com.balysv:material-ripple:1.0.2'
    implementation 'com.google.firebase:firebase-messaging:12.0.1'
    //compile 'com.codemybrainsout.rating:ratingdialog:1.0.8'
    implementation 'com.github.hotchemi:android-rate:1.0.1'
    implementation 'com.onesignal:OneSignal:[3.8.3, 3.99.99]'//3.6.2
    implementation 'com.google.android.gms:play-services-analytics:12.0.1'
}


apply plugin: 'com.google.gms.google-services'

Finally, How can I solve my problem?

Comments