I find duplicated class in firebase library . How to exclude?












-1















I find duplicated classes in one of this 3 lib of firebase:



 com.google.firebase:firebase-core:16.0.4

com.google.firebase:firebase-ads:17.0.0

com.google.firebase:firebase-database:16.0.3


I want to exclude or similar like this, I don't want to use multidex cuz i want my app to install in devices 4.0.3 and up.



Before that, I had old version of this lib



com.google.firebase:firebase-ads:15.0.1


And i had no problem but this old version of this library doesn't show ads.










share|improve this question

























  • you don't. Those classes will be used by other classes, remove them and they will break

    – Stultuske
    Nov 20 '18 at 11:45











  • Mixing major versions 17 and 16 looks suspicious. Are you sure this is correct?

    – Henry
    Nov 20 '18 at 11:50













  • @Henry in android studio notify me that latest ver of lib is 17.+

    – Albania IPTV
    Nov 20 '18 at 11:55


















-1















I find duplicated classes in one of this 3 lib of firebase:



 com.google.firebase:firebase-core:16.0.4

com.google.firebase:firebase-ads:17.0.0

com.google.firebase:firebase-database:16.0.3


I want to exclude or similar like this, I don't want to use multidex cuz i want my app to install in devices 4.0.3 and up.



Before that, I had old version of this lib



com.google.firebase:firebase-ads:15.0.1


And i had no problem but this old version of this library doesn't show ads.










share|improve this question

























  • you don't. Those classes will be used by other classes, remove them and they will break

    – Stultuske
    Nov 20 '18 at 11:45











  • Mixing major versions 17 and 16 looks suspicious. Are you sure this is correct?

    – Henry
    Nov 20 '18 at 11:50













  • @Henry in android studio notify me that latest ver of lib is 17.+

    – Albania IPTV
    Nov 20 '18 at 11:55
















-1












-1








-1








I find duplicated classes in one of this 3 lib of firebase:



 com.google.firebase:firebase-core:16.0.4

com.google.firebase:firebase-ads:17.0.0

com.google.firebase:firebase-database:16.0.3


I want to exclude or similar like this, I don't want to use multidex cuz i want my app to install in devices 4.0.3 and up.



Before that, I had old version of this lib



com.google.firebase:firebase-ads:15.0.1


And i had no problem but this old version of this library doesn't show ads.










share|improve this question
















I find duplicated classes in one of this 3 lib of firebase:



 com.google.firebase:firebase-core:16.0.4

com.google.firebase:firebase-ads:17.0.0

com.google.firebase:firebase-database:16.0.3


I want to exclude or similar like this, I don't want to use multidex cuz i want my app to install in devices 4.0.3 and up.



Before that, I had old version of this lib



com.google.firebase:firebase-ads:15.0.1


And i had no problem but this old version of this library doesn't show ads.







java android firebase firebase-realtime-database






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 20 '18 at 13:54









Bsquare ℬℬ

3,65051534




3,65051534










asked Nov 20 '18 at 11:43









Albania IPTVAlbania IPTV

41




41













  • you don't. Those classes will be used by other classes, remove them and they will break

    – Stultuske
    Nov 20 '18 at 11:45











  • Mixing major versions 17 and 16 looks suspicious. Are you sure this is correct?

    – Henry
    Nov 20 '18 at 11:50













  • @Henry in android studio notify me that latest ver of lib is 17.+

    – Albania IPTV
    Nov 20 '18 at 11:55





















  • you don't. Those classes will be used by other classes, remove them and they will break

    – Stultuske
    Nov 20 '18 at 11:45











  • Mixing major versions 17 and 16 looks suspicious. Are you sure this is correct?

    – Henry
    Nov 20 '18 at 11:50













  • @Henry in android studio notify me that latest ver of lib is 17.+

    – Albania IPTV
    Nov 20 '18 at 11:55



















you don't. Those classes will be used by other classes, remove them and they will break

– Stultuske
Nov 20 '18 at 11:45





you don't. Those classes will be used by other classes, remove them and they will break

– Stultuske
Nov 20 '18 at 11:45













Mixing major versions 17 and 16 looks suspicious. Are you sure this is correct?

– Henry
Nov 20 '18 at 11:50







Mixing major versions 17 and 16 looks suspicious. Are you sure this is correct?

– Henry
Nov 20 '18 at 11:50















@Henry in android studio notify me that latest ver of lib is 17.+

– Albania IPTV
Nov 20 '18 at 11:55







@Henry in android studio notify me that latest ver of lib is 17.+

– Albania IPTV
Nov 20 '18 at 11:55














1 Answer
1






active

oldest

votes


















1














You can exclude that particular class from your import:



compile('com.google.firebase:firebase-core:16.0.4') {
exclude module: 'abcxyz'
}





share|improve this answer


























  • Shivam Yadav can u help to find that dublicated class how to ?

    – Albania IPTV
    Nov 20 '18 at 11:51











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',
autoActivateHeartbeat: false,
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%2f53392287%2fi-find-duplicated-class-in-firebase-library-how-to-exclude%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









1














You can exclude that particular class from your import:



compile('com.google.firebase:firebase-core:16.0.4') {
exclude module: 'abcxyz'
}





share|improve this answer


























  • Shivam Yadav can u help to find that dublicated class how to ?

    – Albania IPTV
    Nov 20 '18 at 11:51
















1














You can exclude that particular class from your import:



compile('com.google.firebase:firebase-core:16.0.4') {
exclude module: 'abcxyz'
}





share|improve this answer


























  • Shivam Yadav can u help to find that dublicated class how to ?

    – Albania IPTV
    Nov 20 '18 at 11:51














1












1








1







You can exclude that particular class from your import:



compile('com.google.firebase:firebase-core:16.0.4') {
exclude module: 'abcxyz'
}





share|improve this answer















You can exclude that particular class from your import:



compile('com.google.firebase:firebase-core:16.0.4') {
exclude module: 'abcxyz'
}






share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 20 '18 at 12:17









JakeSteam

2,44252437




2,44252437










answered Nov 20 '18 at 11:47









Shivam YadavShivam Yadav

112




112













  • Shivam Yadav can u help to find that dublicated class how to ?

    – Albania IPTV
    Nov 20 '18 at 11:51



















  • Shivam Yadav can u help to find that dublicated class how to ?

    – Albania IPTV
    Nov 20 '18 at 11:51

















Shivam Yadav can u help to find that dublicated class how to ?

– Albania IPTV
Nov 20 '18 at 11:51





Shivam Yadav can u help to find that dublicated class how to ?

– Albania IPTV
Nov 20 '18 at 11:51




















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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53392287%2fi-find-duplicated-class-in-firebase-library-how-to-exclude%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

How to send String Array data to Server using php in android

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

Is anime1.com a legal site for watching anime?