How can I resolve the following gradle dependency mismatch problem in Android Studio? The issue is mentioned...











up vote
0
down vote

favorite












Gradle Error




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?










share|improve this question
























  • 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















up vote
0
down vote

favorite












Gradle Error




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?










share|improve this question
























  • 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













up vote
0
down vote

favorite









up vote
0
down vote

favorite











Gradle Error




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?










share|improve this question















Gradle Error




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?







android firebase android-studio gradle android-gradle






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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


















  • 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












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






share|improve this answer



















  • 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













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
});


}
});














draft saved

draft discarded


















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

























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






share|improve this answer



















  • 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

















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






share|improve this answer



















  • 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















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






share|improve this answer














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







share|improve this answer














share|improve this answer



share|improve this answer








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
















  • 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




















draft saved

draft discarded




















































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%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





















































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

List item for chat from Array inside array React Native

Thiostrepton

Caerphilly