How can I resolve the following gradle dependency mismatch problem in Android Studio? The issue is mentioned...
up vote
0
down vote
favorite

All gms/firebase libraries must use the exact same version
specification (mixing versions can lead to runtime crashes). Found
versions 17.1.0, 17.0.4, 17.0.2, 17.0.1, 16.2.2, 16.0.4, 16.0.3,
16.0.2, 16.0.1, 16.0.0. Examples include com.google.android.gms:play-services-ads:17.1.0 and
com.google.firebase:firebase-iid:17.0.4 less... (Ctrl+F1)
There are some combinations of libraries, or tools and libraries, that
are incompatible, or can lead to bugs. One such incompatibility is
compiling with a version of the Android support libraries that is not
the latest version (or in particular, a version lower than your
targetSdkVersion.)
The Gradle dependencies are as follows:
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.google.firebase:firebase-core:16.0.4'
implementation 'com.google.firebase:firebase-ads:17.1.0'
implementation 'pub.devrel:easypermissions:1.3.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:support-v13:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:palette-v7:28.0.0'
implementation 'com.github.bumptech.glide:glide:4.8.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'
implementation 'jp.wasabeef:recyclerview-animators:2.3.0'
implementation 'com.github.apl-devs:appintro:v4.2.3'
implementation 'com.iarcuschin:simpleratingbar:0.1.5'
}
I tried using the 'play-services-ads' dependency instead of the 'firebase-ads'. Also tried adding the 'firebase-iid' dependency, but for no luck.
I am not sure if this is relevant but if I see the gradle console, I see this warning 'Warning:Failed to parse host www-proxy.idc.oracle.com'.
How to resolve the dependencies correctly?
add a comment |
up vote
0
down vote
favorite

All gms/firebase libraries must use the exact same version
specification (mixing versions can lead to runtime crashes). Found
versions 17.1.0, 17.0.4, 17.0.2, 17.0.1, 16.2.2, 16.0.4, 16.0.3,
16.0.2, 16.0.1, 16.0.0. Examples include com.google.android.gms:play-services-ads:17.1.0 and
com.google.firebase:firebase-iid:17.0.4 less... (Ctrl+F1)
There are some combinations of libraries, or tools and libraries, that
are incompatible, or can lead to bugs. One such incompatibility is
compiling with a version of the Android support libraries that is not
the latest version (or in particular, a version lower than your
targetSdkVersion.)
The Gradle dependencies are as follows:
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.google.firebase:firebase-core:16.0.4'
implementation 'com.google.firebase:firebase-ads:17.1.0'
implementation 'pub.devrel:easypermissions:1.3.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:support-v13:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:palette-v7:28.0.0'
implementation 'com.github.bumptech.glide:glide:4.8.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'
implementation 'jp.wasabeef:recyclerview-animators:2.3.0'
implementation 'com.github.apl-devs:appintro:v4.2.3'
implementation 'com.iarcuschin:simpleratingbar:0.1.5'
}
I tried using the 'play-services-ads' dependency instead of the 'firebase-ads'. Also tried adding the 'firebase-iid' dependency, but for no luck.
I am not sure if this is relevant but if I see the gradle console, I see this warning 'Warning:Failed to parse host www-proxy.idc.oracle.com'.
How to resolve the dependencies correctly?
This show the errors as warning but not effect the app.
– Vishal Sharma
Nov 11 at 8:22
@VishalSharma It doesn't seem to be causing an issue at present. But, I would like to not take a chance, since this is for a production application.
– Adi
Nov 11 at 8:34
Please, don't post your code/error messages as images. Firstly we want to copy/paste it and secondly search engines are unable to index that information. So please make sure that any textual information is actually provided in text form.
– lucascaro
Nov 11 at 8:54
1
@lucascaro You are right. Updated the question with text information of the error.
– Adi
Nov 11 at 8:57
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite

All gms/firebase libraries must use the exact same version
specification (mixing versions can lead to runtime crashes). Found
versions 17.1.0, 17.0.4, 17.0.2, 17.0.1, 16.2.2, 16.0.4, 16.0.3,
16.0.2, 16.0.1, 16.0.0. Examples include com.google.android.gms:play-services-ads:17.1.0 and
com.google.firebase:firebase-iid:17.0.4 less... (Ctrl+F1)
There are some combinations of libraries, or tools and libraries, that
are incompatible, or can lead to bugs. One such incompatibility is
compiling with a version of the Android support libraries that is not
the latest version (or in particular, a version lower than your
targetSdkVersion.)
The Gradle dependencies are as follows:
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.google.firebase:firebase-core:16.0.4'
implementation 'com.google.firebase:firebase-ads:17.1.0'
implementation 'pub.devrel:easypermissions:1.3.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:support-v13:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:palette-v7:28.0.0'
implementation 'com.github.bumptech.glide:glide:4.8.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'
implementation 'jp.wasabeef:recyclerview-animators:2.3.0'
implementation 'com.github.apl-devs:appintro:v4.2.3'
implementation 'com.iarcuschin:simpleratingbar:0.1.5'
}
I tried using the 'play-services-ads' dependency instead of the 'firebase-ads'. Also tried adding the 'firebase-iid' dependency, but for no luck.
I am not sure if this is relevant but if I see the gradle console, I see this warning 'Warning:Failed to parse host www-proxy.idc.oracle.com'.
How to resolve the dependencies correctly?

All gms/firebase libraries must use the exact same version
specification (mixing versions can lead to runtime crashes). Found
versions 17.1.0, 17.0.4, 17.0.2, 17.0.1, 16.2.2, 16.0.4, 16.0.3,
16.0.2, 16.0.1, 16.0.0. Examples include com.google.android.gms:play-services-ads:17.1.0 and
com.google.firebase:firebase-iid:17.0.4 less... (Ctrl+F1)
There are some combinations of libraries, or tools and libraries, that
are incompatible, or can lead to bugs. One such incompatibility is
compiling with a version of the Android support libraries that is not
the latest version (or in particular, a version lower than your
targetSdkVersion.)
The Gradle dependencies are as follows:
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.google.firebase:firebase-core:16.0.4'
implementation 'com.google.firebase:firebase-ads:17.1.0'
implementation 'pub.devrel:easypermissions:1.3.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:support-v13:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:palette-v7:28.0.0'
implementation 'com.github.bumptech.glide:glide:4.8.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'
implementation 'jp.wasabeef:recyclerview-animators:2.3.0'
implementation 'com.github.apl-devs:appintro:v4.2.3'
implementation 'com.iarcuschin:simpleratingbar:0.1.5'
}
I tried using the 'play-services-ads' dependency instead of the 'firebase-ads'. Also tried adding the 'firebase-iid' dependency, but for no luck.
I am not sure if this is relevant but if I see the gradle console, I see this warning 'Warning:Failed to parse host www-proxy.idc.oracle.com'.
How to resolve the dependencies correctly?
edited Nov 11 at 8:56
asked Nov 11 at 8:17
Adi
981110
981110
This show the errors as warning but not effect the app.
– Vishal Sharma
Nov 11 at 8:22
@VishalSharma It doesn't seem to be causing an issue at present. But, I would like to not take a chance, since this is for a production application.
– Adi
Nov 11 at 8:34
Please, don't post your code/error messages as images. Firstly we want to copy/paste it and secondly search engines are unable to index that information. So please make sure that any textual information is actually provided in text form.
– lucascaro
Nov 11 at 8:54
1
@lucascaro You are right. Updated the question with text information of the error.
– Adi
Nov 11 at 8:57
add a comment |
This show the errors as warning but not effect the app.
– Vishal Sharma
Nov 11 at 8:22
@VishalSharma It doesn't seem to be causing an issue at present. But, I would like to not take a chance, since this is for a production application.
– Adi
Nov 11 at 8:34
Please, don't post your code/error messages as images. Firstly we want to copy/paste it and secondly search engines are unable to index that information. So please make sure that any textual information is actually provided in text form.
– lucascaro
Nov 11 at 8:54
1
@lucascaro You are right. Updated the question with text information of the error.
– Adi
Nov 11 at 8:57
This show the errors as warning but not effect the app.
– Vishal Sharma
Nov 11 at 8:22
This show the errors as warning but not effect the app.
– Vishal Sharma
Nov 11 at 8:22
@VishalSharma It doesn't seem to be causing an issue at present. But, I would like to not take a chance, since this is for a production application.
– Adi
Nov 11 at 8:34
@VishalSharma It doesn't seem to be causing an issue at present. But, I would like to not take a chance, since this is for a production application.
– Adi
Nov 11 at 8:34
Please, don't post your code/error messages as images. Firstly we want to copy/paste it and secondly search engines are unable to index that information. So please make sure that any textual information is actually provided in text form.
– lucascaro
Nov 11 at 8:54
Please, don't post your code/error messages as images. Firstly we want to copy/paste it and secondly search engines are unable to index that information. So please make sure that any textual information is actually provided in text form.
– lucascaro
Nov 11 at 8:54
1
1
@lucascaro You are right. Updated the question with text information of the error.
– Adi
Nov 11 at 8:57
@lucascaro You are right. Updated the question with text information of the error.
– Adi
Nov 11 at 8:57
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
I got the problem before. If you are already messing those versions, I will suggest you go through official's Setup again. There might have something needs to be upgraded.
Especially these 2 steps:
1.Check root gradle 's gms version.
buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.google.gms:google-services:4.2.0'
}
}
2.Update all dependencies in app's gradle to the latest, example:
implementation 'com.google.firebase:firebase-ads:17.1.0'
implementation 'com.google.firebase:firebase-messaging:17.3.4'
implementation 'com.google.firebase:firebase-database:16.0.5'
For the latest version : Firebase Release notes
1
dependencies { classpath 'com.android.tools.build:gradle:3.2.1' classpath 'com.google.gms:google-services:4.2.0' }
– Adi
Nov 11 at 10:32
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
I got the problem before. If you are already messing those versions, I will suggest you go through official's Setup again. There might have something needs to be upgraded.
Especially these 2 steps:
1.Check root gradle 's gms version.
buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.google.gms:google-services:4.2.0'
}
}
2.Update all dependencies in app's gradle to the latest, example:
implementation 'com.google.firebase:firebase-ads:17.1.0'
implementation 'com.google.firebase:firebase-messaging:17.3.4'
implementation 'com.google.firebase:firebase-database:16.0.5'
For the latest version : Firebase Release notes
1
dependencies { classpath 'com.android.tools.build:gradle:3.2.1' classpath 'com.google.gms:google-services:4.2.0' }
– Adi
Nov 11 at 10:32
add a comment |
up vote
0
down vote
I got the problem before. If you are already messing those versions, I will suggest you go through official's Setup again. There might have something needs to be upgraded.
Especially these 2 steps:
1.Check root gradle 's gms version.
buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.google.gms:google-services:4.2.0'
}
}
2.Update all dependencies in app's gradle to the latest, example:
implementation 'com.google.firebase:firebase-ads:17.1.0'
implementation 'com.google.firebase:firebase-messaging:17.3.4'
implementation 'com.google.firebase:firebase-database:16.0.5'
For the latest version : Firebase Release notes
1
dependencies { classpath 'com.android.tools.build:gradle:3.2.1' classpath 'com.google.gms:google-services:4.2.0' }
– Adi
Nov 11 at 10:32
add a comment |
up vote
0
down vote
up vote
0
down vote
I got the problem before. If you are already messing those versions, I will suggest you go through official's Setup again. There might have something needs to be upgraded.
Especially these 2 steps:
1.Check root gradle 's gms version.
buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.google.gms:google-services:4.2.0'
}
}
2.Update all dependencies in app's gradle to the latest, example:
implementation 'com.google.firebase:firebase-ads:17.1.0'
implementation 'com.google.firebase:firebase-messaging:17.3.4'
implementation 'com.google.firebase:firebase-database:16.0.5'
For the latest version : Firebase Release notes
I got the problem before. If you are already messing those versions, I will suggest you go through official's Setup again. There might have something needs to be upgraded.
Especially these 2 steps:
1.Check root gradle 's gms version.
buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.google.gms:google-services:4.2.0'
}
}
2.Update all dependencies in app's gradle to the latest, example:
implementation 'com.google.firebase:firebase-ads:17.1.0'
implementation 'com.google.firebase:firebase-messaging:17.3.4'
implementation 'com.google.firebase:firebase-database:16.0.5'
For the latest version : Firebase Release notes
edited Nov 12 at 2:20
answered Nov 11 at 10:07
Wesely
358312
358312
1
dependencies { classpath 'com.android.tools.build:gradle:3.2.1' classpath 'com.google.gms:google-services:4.2.0' }
– Adi
Nov 11 at 10:32
add a comment |
1
dependencies { classpath 'com.android.tools.build:gradle:3.2.1' classpath 'com.google.gms:google-services:4.2.0' }
– Adi
Nov 11 at 10:32
1
1
dependencies { classpath 'com.android.tools.build:gradle:3.2.1' classpath 'com.google.gms:google-services:4.2.0' }
– Adi
Nov 11 at 10:32
dependencies { classpath 'com.android.tools.build:gradle:3.2.1' classpath 'com.google.gms:google-services:4.2.0' }
– Adi
Nov 11 at 10:32
add a comment |
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%2f53246971%2fhow-can-i-resolve-the-following-gradle-dependency-mismatch-problem-in-android-st%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
This show the errors as warning but not effect the app.
– Vishal Sharma
Nov 11 at 8:22
@VishalSharma It doesn't seem to be causing an issue at present. But, I would like to not take a chance, since this is for a production application.
– Adi
Nov 11 at 8:34
Please, don't post your code/error messages as images. Firstly we want to copy/paste it and secondly search engines are unable to index that information. So please make sure that any textual information is actually provided in text form.
– lucascaro
Nov 11 at 8:54
1
@lucascaro You are right. Updated the question with text information of the error.
– Adi
Nov 11 at 8:57