Could not find com.google.gms:google-services:4.0.1
up vote
19
down vote
favorite
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
New contributor
add a comment |
up vote
19
down vote
favorite
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
New contributor
Same issue for me. Could be related to similar issue here github.com/google/ExoPlayer/issues/5225
– Stepango
3 hours ago
add a comment |
up vote
19
down vote
favorite
up vote
19
down vote
favorite
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
New contributor
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
android firebase-cloud-messaging google-services-json
New contributor
New contributor
New contributor
asked 3 hours ago
Arafa TechLink
963
963
New contributor
New contributor
Same issue for me. Could be related to similar issue here github.com/google/ExoPlayer/issues/5225
– Stepango
3 hours ago
add a comment |
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
add a comment |
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.
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
|
show 1 more comment
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'
add a comment |
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
add a comment |
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.
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
|
show 1 more comment
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.
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
|
show 1 more comment
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.
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.
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
|
show 1 more comment
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
|
show 1 more comment
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'
add a comment |
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'
add a comment |
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'
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'
answered 2 hours ago
dglozano
60920
60920
add a comment |
add a comment |
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
add a comment |
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
add a comment |
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
please test with vpn
also not fix
you can use oneSignal,
use it
and a simple code for android studio java,Kotlin
answered 3 hours ago
hamid
454
454
add a comment |
add a comment |
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.
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
Same issue for me. Could be related to similar issue here github.com/google/ExoPlayer/issues/5225
– Stepango
3 hours ago