I find duplicated class in firebase library . How to exclude?
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
add a comment |
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
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
add a comment |
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
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
java
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
You can exclude that particular class from your import:
compile('com.google.firebase:firebase-core:16.0.4') {
exclude module: 'abcxyz'
}
Shivam Yadav can u help to find that dublicated class how to ?
– Albania IPTV
Nov 20 '18 at 11:51
add a comment |
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
});
}
});
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%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
You can exclude that particular class from your import:
compile('com.google.firebase:firebase-core:16.0.4') {
exclude module: 'abcxyz'
}
Shivam Yadav can u help to find that dublicated class how to ?
– Albania IPTV
Nov 20 '18 at 11:51
add a comment |
You can exclude that particular class from your import:
compile('com.google.firebase:firebase-core:16.0.4') {
exclude module: 'abcxyz'
}
Shivam Yadav can u help to find that dublicated class how to ?
– Albania IPTV
Nov 20 '18 at 11:51
add a comment |
You can exclude that particular class from your import:
compile('com.google.firebase:firebase-core:16.0.4') {
exclude module: 'abcxyz'
}
You can exclude that particular class from your import:
compile('com.google.firebase:firebase-core:16.0.4') {
exclude module: 'abcxyz'
}
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
add a comment |
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
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.
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%2f53392287%2fi-find-duplicated-class-in-firebase-library-how-to-exclude%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
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