Could not find com.google.gms:google-services:4.0.1











up vote
19
down vote

favorite
3












Hi i started a new project in android and imported firebase as told in google docs.
Everything was perfect in Android studio 3.0.1.
Now i update my Android studio to 3.2.1. Now the same code is rebuild and got error that




Could not find com.google.gms:google-services:4.0.1




Log was:



Could not find com.google.gms:google-services:4.0.1.
Searched in the following locations:
file:/Applications/Android Studio.app/Contents/gradle/m2repository/com/google/gms/google-services/4.0.1/google-services-4.0.1.pom
file:/Applications/Android Studio.app/Contents/gradle/m2repository/com/google/gms/google-services/4.0.1/google-services-4.0.1.jar
https://jcenter.bintray.com/com/google/gms/google-services/4.0.1/google-services-4.0.1.pom
https://jcenter.bintray.com/com/google/gms/google-services/4.0.1/google-services-4.0.1.jar
https://dl.google.com/dl/android/maven2/com/google/gms/google-services/4.0.1/google-services-4.0.1.pom
https://dl.google.com/dl/android/maven2/com/google/gms/google-services/4.0.1/google-services-4.0.1.jar
Required by:
project :


My Project Level Gradle is:



buildscript {

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

allprojects {
repositories {
jcenter()
google()
}
}

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


App level Gradle is:



apply plugin: 'com.android.application'

android {
compileSdkVersion 27
defaultConfig {
applicationId "com.arafa.sms"
minSdkVersion 21
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.1.0'
implementation 'com.android.support:support-v4:27.1.0'
implementation 'com.android.support:animated-vector-drawable:27.1.0'
implementation 'com.android.support:support-media-compat:27.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.google.code.gson:gson:2.6.2'
implementation 'com.squareup.okhttp3:okhttp:3.3.1'
implementation 'com.google.firebase:firebase-core:16.0.1'
}
apply plugin: 'com.google.gms.google-services'


What is the issue here! Please help me out!










share|improve this question







New contributor




Arafa TechLink is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Same issue for me. Could be related to similar issue here github.com/google/ExoPlayer/issues/5225
    – Stepango
    3 hours ago















up vote
19
down vote

favorite
3












Hi i started a new project in android and imported firebase as told in google docs.
Everything was perfect in Android studio 3.0.1.
Now i update my Android studio to 3.2.1. Now the same code is rebuild and got error that




Could not find com.google.gms:google-services:4.0.1




Log was:



Could not find com.google.gms:google-services:4.0.1.
Searched in the following locations:
file:/Applications/Android Studio.app/Contents/gradle/m2repository/com/google/gms/google-services/4.0.1/google-services-4.0.1.pom
file:/Applications/Android Studio.app/Contents/gradle/m2repository/com/google/gms/google-services/4.0.1/google-services-4.0.1.jar
https://jcenter.bintray.com/com/google/gms/google-services/4.0.1/google-services-4.0.1.pom
https://jcenter.bintray.com/com/google/gms/google-services/4.0.1/google-services-4.0.1.jar
https://dl.google.com/dl/android/maven2/com/google/gms/google-services/4.0.1/google-services-4.0.1.pom
https://dl.google.com/dl/android/maven2/com/google/gms/google-services/4.0.1/google-services-4.0.1.jar
Required by:
project :


My Project Level Gradle is:



buildscript {

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

allprojects {
repositories {
jcenter()
google()
}
}

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


App level Gradle is:



apply plugin: 'com.android.application'

android {
compileSdkVersion 27
defaultConfig {
applicationId "com.arafa.sms"
minSdkVersion 21
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.1.0'
implementation 'com.android.support:support-v4:27.1.0'
implementation 'com.android.support:animated-vector-drawable:27.1.0'
implementation 'com.android.support:support-media-compat:27.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.google.code.gson:gson:2.6.2'
implementation 'com.squareup.okhttp3:okhttp:3.3.1'
implementation 'com.google.firebase:firebase-core:16.0.1'
}
apply plugin: 'com.google.gms.google-services'


What is the issue here! Please help me out!










share|improve this question







New contributor




Arafa TechLink is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Same issue for me. Could be related to similar issue here github.com/google/ExoPlayer/issues/5225
    – Stepango
    3 hours ago













up vote
19
down vote

favorite
3









up vote
19
down vote

favorite
3






3





Hi i started a new project in android and imported firebase as told in google docs.
Everything was perfect in Android studio 3.0.1.
Now i update my Android studio to 3.2.1. Now the same code is rebuild and got error that




Could not find com.google.gms:google-services:4.0.1




Log was:



Could not find com.google.gms:google-services:4.0.1.
Searched in the following locations:
file:/Applications/Android Studio.app/Contents/gradle/m2repository/com/google/gms/google-services/4.0.1/google-services-4.0.1.pom
file:/Applications/Android Studio.app/Contents/gradle/m2repository/com/google/gms/google-services/4.0.1/google-services-4.0.1.jar
https://jcenter.bintray.com/com/google/gms/google-services/4.0.1/google-services-4.0.1.pom
https://jcenter.bintray.com/com/google/gms/google-services/4.0.1/google-services-4.0.1.jar
https://dl.google.com/dl/android/maven2/com/google/gms/google-services/4.0.1/google-services-4.0.1.pom
https://dl.google.com/dl/android/maven2/com/google/gms/google-services/4.0.1/google-services-4.0.1.jar
Required by:
project :


My Project Level Gradle is:



buildscript {

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

allprojects {
repositories {
jcenter()
google()
}
}

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


App level Gradle is:



apply plugin: 'com.android.application'

android {
compileSdkVersion 27
defaultConfig {
applicationId "com.arafa.sms"
minSdkVersion 21
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.1.0'
implementation 'com.android.support:support-v4:27.1.0'
implementation 'com.android.support:animated-vector-drawable:27.1.0'
implementation 'com.android.support:support-media-compat:27.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.google.code.gson:gson:2.6.2'
implementation 'com.squareup.okhttp3:okhttp:3.3.1'
implementation 'com.google.firebase:firebase-core:16.0.1'
}
apply plugin: 'com.google.gms.google-services'


What is the issue here! Please help me out!










share|improve this question







New contributor




Arafa TechLink is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











Hi i started a new project in android and imported firebase as told in google docs.
Everything was perfect in Android studio 3.0.1.
Now i update my Android studio to 3.2.1. Now the same code is rebuild and got error that




Could not find com.google.gms:google-services:4.0.1




Log was:



Could not find com.google.gms:google-services:4.0.1.
Searched in the following locations:
file:/Applications/Android Studio.app/Contents/gradle/m2repository/com/google/gms/google-services/4.0.1/google-services-4.0.1.pom
file:/Applications/Android Studio.app/Contents/gradle/m2repository/com/google/gms/google-services/4.0.1/google-services-4.0.1.jar
https://jcenter.bintray.com/com/google/gms/google-services/4.0.1/google-services-4.0.1.pom
https://jcenter.bintray.com/com/google/gms/google-services/4.0.1/google-services-4.0.1.jar
https://dl.google.com/dl/android/maven2/com/google/gms/google-services/4.0.1/google-services-4.0.1.pom
https://dl.google.com/dl/android/maven2/com/google/gms/google-services/4.0.1/google-services-4.0.1.jar
Required by:
project :


My Project Level Gradle is:



buildscript {

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

allprojects {
repositories {
jcenter()
google()
}
}

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


App level Gradle is:



apply plugin: 'com.android.application'

android {
compileSdkVersion 27
defaultConfig {
applicationId "com.arafa.sms"
minSdkVersion 21
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.1.0'
implementation 'com.android.support:support-v4:27.1.0'
implementation 'com.android.support:animated-vector-drawable:27.1.0'
implementation 'com.android.support:support-media-compat:27.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.google.code.gson:gson:2.6.2'
implementation 'com.squareup.okhttp3:okhttp:3.3.1'
implementation 'com.google.firebase:firebase-core:16.0.1'
}
apply plugin: 'com.google.gms.google-services'


What is the issue here! Please help me out!







android firebase-cloud-messaging google-services-json






share|improve this question







New contributor




Arafa TechLink is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




Arafa TechLink is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




Arafa TechLink is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 3 hours ago









Arafa TechLink

963




963




New contributor




Arafa TechLink is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Arafa TechLink is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Arafa TechLink is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • Same issue for me. Could be related to similar issue here github.com/google/ExoPlayer/issues/5225
    – Stepango
    3 hours ago


















  • Same issue for me. Could be related to similar issue here github.com/google/ExoPlayer/issues/5225
    – Stepango
    3 hours ago
















Same issue for me. Could be related to similar issue here github.com/google/ExoPlayer/issues/5225
– Stepango
3 hours ago




Same issue for me. Could be related to similar issue here github.com/google/ExoPlayer/issues/5225
– Stepango
3 hours ago












3 Answers
3






active

oldest

votes

















up vote
27
down vote













I have the same problem, it seems like Google repo is missing this dependency. I checked the repository and gms folder does not contain any published versions.



So as a quick fix I added another repository, that has it:



repositories {
maven { url 'https://dl.bintray.com/android/android-tools' }
}


I will remove it later when the build will work without it.






share|improve this answer



















  • 3




    works - for me it's also not finding com.google.firebase:firebase-plugins:1.1.5 anymore, had to add this repo: maven { url 'dl.bintray.com/firebase/gradle' } ¯_(ツ)_/¯
    – Łukasz Wiśniewski
    1 hour ago












  • I'm trying to use a library which tries to find com.android.tools.build:gradle:2.2.3 and I'm getting the same could not find message. I believe it's the same problem. Does anyone know a repository from where I could get it?
    – tibuurcio
    15 mins ago










  • @tibuurcio Seems like could use the same one since it contains the library: dl.bintray.com/android/android-tools/com/android/tools/build/…
    – David Sucharda
    15 mins ago






  • 1




    @DavidSucharda is it secure ?! Do google use that ?
    – Damiii
    12 mins ago










  • After the above change I am getting 'Plugin with id 'com.google.gms.google-services' not found'
    – Deepak Negi
    5 mins ago


















up vote
0
down vote













Try adding another maven repository to your project gradle file. For example:



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


If that doesn't work, adding the OneSignal gradle plugin, also to the project's gradle, might do the trick (as suggested in this answer).



apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin'





share|improve this answer




























    up vote
    -3
    down vote













    please test with vpn



    also not fix
    you can use oneSignal,
    use it



    and a simple code for android studio java,Kotlin






    share|improve this answer





















      Your Answer






      StackExchange.ifUsing("editor", function () {
      StackExchange.using("externalEditor", function () {
      StackExchange.using("snippets", function () {
      StackExchange.snippets.init();
      });
      });
      }, "code-snippets");

      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "1"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });






      Arafa TechLink is a new contributor. Be nice, and check out our Code of Conduct.










      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53704155%2fcould-not-find-com-google-gmsgoogle-services4-0-1%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      27
      down vote













      I have the same problem, it seems like Google repo is missing this dependency. I checked the repository and gms folder does not contain any published versions.



      So as a quick fix I added another repository, that has it:



      repositories {
      maven { url 'https://dl.bintray.com/android/android-tools' }
      }


      I will remove it later when the build will work without it.






      share|improve this answer



















      • 3




        works - for me it's also not finding com.google.firebase:firebase-plugins:1.1.5 anymore, had to add this repo: maven { url 'dl.bintray.com/firebase/gradle' } ¯_(ツ)_/¯
        – Łukasz Wiśniewski
        1 hour ago












      • I'm trying to use a library which tries to find com.android.tools.build:gradle:2.2.3 and I'm getting the same could not find message. I believe it's the same problem. Does anyone know a repository from where I could get it?
        – tibuurcio
        15 mins ago










      • @tibuurcio Seems like could use the same one since it contains the library: dl.bintray.com/android/android-tools/com/android/tools/build/…
        – David Sucharda
        15 mins ago






      • 1




        @DavidSucharda is it secure ?! Do google use that ?
        – Damiii
        12 mins ago










      • After the above change I am getting 'Plugin with id 'com.google.gms.google-services' not found'
        – Deepak Negi
        5 mins ago















      up vote
      27
      down vote













      I have the same problem, it seems like Google repo is missing this dependency. I checked the repository and gms folder does not contain any published versions.



      So as a quick fix I added another repository, that has it:



      repositories {
      maven { url 'https://dl.bintray.com/android/android-tools' }
      }


      I will remove it later when the build will work without it.






      share|improve this answer



















      • 3




        works - for me it's also not finding com.google.firebase:firebase-plugins:1.1.5 anymore, had to add this repo: maven { url 'dl.bintray.com/firebase/gradle' } ¯_(ツ)_/¯
        – Łukasz Wiśniewski
        1 hour ago












      • I'm trying to use a library which tries to find com.android.tools.build:gradle:2.2.3 and I'm getting the same could not find message. I believe it's the same problem. Does anyone know a repository from where I could get it?
        – tibuurcio
        15 mins ago










      • @tibuurcio Seems like could use the same one since it contains the library: dl.bintray.com/android/android-tools/com/android/tools/build/…
        – David Sucharda
        15 mins ago






      • 1




        @DavidSucharda is it secure ?! Do google use that ?
        – Damiii
        12 mins ago










      • After the above change I am getting 'Plugin with id 'com.google.gms.google-services' not found'
        – Deepak Negi
        5 mins ago













      up vote
      27
      down vote










      up vote
      27
      down vote









      I have the same problem, it seems like Google repo is missing this dependency. I checked the repository and gms folder does not contain any published versions.



      So as a quick fix I added another repository, that has it:



      repositories {
      maven { url 'https://dl.bintray.com/android/android-tools' }
      }


      I will remove it later when the build will work without it.






      share|improve this answer














      I have the same problem, it seems like Google repo is missing this dependency. I checked the repository and gms folder does not contain any published versions.



      So as a quick fix I added another repository, that has it:



      repositories {
      maven { url 'https://dl.bintray.com/android/android-tools' }
      }


      I will remove it later when the build will work without it.







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited 44 mins ago

























      answered 3 hours ago









      David Sucharda

      23617




      23617








      • 3




        works - for me it's also not finding com.google.firebase:firebase-plugins:1.1.5 anymore, had to add this repo: maven { url 'dl.bintray.com/firebase/gradle' } ¯_(ツ)_/¯
        – Łukasz Wiśniewski
        1 hour ago












      • I'm trying to use a library which tries to find com.android.tools.build:gradle:2.2.3 and I'm getting the same could not find message. I believe it's the same problem. Does anyone know a repository from where I could get it?
        – tibuurcio
        15 mins ago










      • @tibuurcio Seems like could use the same one since it contains the library: dl.bintray.com/android/android-tools/com/android/tools/build/…
        – David Sucharda
        15 mins ago






      • 1




        @DavidSucharda is it secure ?! Do google use that ?
        – Damiii
        12 mins ago










      • After the above change I am getting 'Plugin with id 'com.google.gms.google-services' not found'
        – Deepak Negi
        5 mins ago














      • 3




        works - for me it's also not finding com.google.firebase:firebase-plugins:1.1.5 anymore, had to add this repo: maven { url 'dl.bintray.com/firebase/gradle' } ¯_(ツ)_/¯
        – Łukasz Wiśniewski
        1 hour ago












      • I'm trying to use a library which tries to find com.android.tools.build:gradle:2.2.3 and I'm getting the same could not find message. I believe it's the same problem. Does anyone know a repository from where I could get it?
        – tibuurcio
        15 mins ago










      • @tibuurcio Seems like could use the same one since it contains the library: dl.bintray.com/android/android-tools/com/android/tools/build/…
        – David Sucharda
        15 mins ago






      • 1




        @DavidSucharda is it secure ?! Do google use that ?
        – Damiii
        12 mins ago










      • After the above change I am getting 'Plugin with id 'com.google.gms.google-services' not found'
        – Deepak Negi
        5 mins ago








      3




      3




      works - for me it's also not finding com.google.firebase:firebase-plugins:1.1.5 anymore, had to add this repo: maven { url 'dl.bintray.com/firebase/gradle' } ¯_(ツ)_/¯
      – Łukasz Wiśniewski
      1 hour ago






      works - for me it's also not finding com.google.firebase:firebase-plugins:1.1.5 anymore, had to add this repo: maven { url 'dl.bintray.com/firebase/gradle' } ¯_(ツ)_/¯
      – Łukasz Wiśniewski
      1 hour ago














      I'm trying to use a library which tries to find com.android.tools.build:gradle:2.2.3 and I'm getting the same could not find message. I believe it's the same problem. Does anyone know a repository from where I could get it?
      – tibuurcio
      15 mins ago




      I'm trying to use a library which tries to find com.android.tools.build:gradle:2.2.3 and I'm getting the same could not find message. I believe it's the same problem. Does anyone know a repository from where I could get it?
      – tibuurcio
      15 mins ago












      @tibuurcio Seems like could use the same one since it contains the library: dl.bintray.com/android/android-tools/com/android/tools/build/…
      – David Sucharda
      15 mins ago




      @tibuurcio Seems like could use the same one since it contains the library: dl.bintray.com/android/android-tools/com/android/tools/build/…
      – David Sucharda
      15 mins ago




      1




      1




      @DavidSucharda is it secure ?! Do google use that ?
      – Damiii
      12 mins ago




      @DavidSucharda is it secure ?! Do google use that ?
      – Damiii
      12 mins ago












      After the above change I am getting 'Plugin with id 'com.google.gms.google-services' not found'
      – Deepak Negi
      5 mins ago




      After the above change I am getting 'Plugin with id 'com.google.gms.google-services' not found'
      – Deepak Negi
      5 mins ago












      up vote
      0
      down vote













      Try adding another maven repository to your project gradle file. For example:



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


      If that doesn't work, adding the OneSignal gradle plugin, also to the project's gradle, might do the trick (as suggested in this answer).



      apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin'





      share|improve this answer

























        up vote
        0
        down vote













        Try adding another maven repository to your project gradle file. For example:



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


        If that doesn't work, adding the OneSignal gradle plugin, also to the project's gradle, might do the trick (as suggested in this answer).



        apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin'





        share|improve this answer























          up vote
          0
          down vote










          up vote
          0
          down vote









          Try adding another maven repository to your project gradle file. For example:



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


          If that doesn't work, adding the OneSignal gradle plugin, also to the project's gradle, might do the trick (as suggested in this answer).



          apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin'





          share|improve this answer












          Try adding another maven repository to your project gradle file. For example:



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


          If that doesn't work, adding the OneSignal gradle plugin, also to the project's gradle, might do the trick (as suggested in this answer).



          apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin'






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 2 hours ago









          dglozano

          60920




          60920






















              up vote
              -3
              down vote













              please test with vpn



              also not fix
              you can use oneSignal,
              use it



              and a simple code for android studio java,Kotlin






              share|improve this answer

























                up vote
                -3
                down vote













                please test with vpn



                also not fix
                you can use oneSignal,
                use it



                and a simple code for android studio java,Kotlin






                share|improve this answer























                  up vote
                  -3
                  down vote










                  up vote
                  -3
                  down vote









                  please test with vpn



                  also not fix
                  you can use oneSignal,
                  use it



                  and a simple code for android studio java,Kotlin






                  share|improve this answer












                  please test with vpn



                  also not fix
                  you can use oneSignal,
                  use it



                  and a simple code for android studio java,Kotlin







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 3 hours ago









                  hamid

                  454




                  454






















                      Arafa TechLink is a new contributor. Be nice, and check out our Code of Conduct.










                      draft saved

                      draft discarded


















                      Arafa TechLink is a new contributor. Be nice, and check out our Code of Conduct.













                      Arafa TechLink is a new contributor. Be nice, and check out our Code of Conduct.












                      Arafa TechLink is a new contributor. Be nice, and check out our Code of Conduct.
















                      Thanks for contributing an answer to Stack Overflow!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.





                      Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                      Please pay close attention to the following guidance:


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53704155%2fcould-not-find-com-google-gmsgoogle-services4-0-1%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      What visual should I use to simply compare current year value vs last year in Power BI desktop

                      Alexandru Averescu

                      Trompette piccolo