Cannot build APK file after migrate from GCM to FCM
up vote
0
down vote
favorite
I have just migrate app from GCM to FCM, app can run and debug normally but when build apk file, the error show following :
Duplicate files copied in APK res/layout/notification_action.xml
File1: D:Plus-AndroidPlusMusebuildjarjarjarjar-20.jar
File2: D:Plus-AndroidPlusMusebuildjarjarjarjar-21.jar
I have search any websites and forum in order to find out solution but still can't help.
My dependencies :
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile jarjar.repackage {
from 'com.google.firebase:firebase-messaging:17.3.3'
classDelete "com.google.android.gms.common.util.VisibleForTesting.class"
}
compile jarjar.repackage {
from 'com.google.firebase:firebase-appindexing:16.0.2'
classDelete "android.arch.lifecycle.LifecycleOwner.class"
}
compile project(':libs:com_actionbarsherlock')
compile project(':libs:holoEverywhereLib')
compile project(':libs:recoMediaLibrary')
compile project(':libs:preLollipopTransition')
compile project(':lyrimokit')
compile 'com.google.code.gson:gson:2.8.1'
compile 'com.android.support:multidex:1.0.1'
compile 'com.android.support:support-v4:26.0.+'
compile 'com.google.firebase:firebase-core:16.0.4'
compile 'com.google.firebase:firebase-messaging:17.3.3'
compile 'com.google.firebase:firebase-appindexing:16.0.2'
compile('com.crashlytics.sdk.android:crashlytics:2.5.5@aar') {
transitive = true
}
}
apply plugin: 'com.google.gms.google-services'
My packagingOptions
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/notice.txt'
exclude 'META-INF/ASL2.0'
}
and
dependencies {
classpath 'com.android.tools.build:gradle:2.3.0'
classpath 'io.fabric.tools:gradle:1.+'
classpath 'com.google.gms:google-services:4.0.2'
classpath "org.anarres.jarjar:jarjar-gradle:1.0.0"
}
So, anybody can help me to find out solution ?
android firebase firebase-cloud-messaging apk
add a comment |
up vote
0
down vote
favorite
I have just migrate app from GCM to FCM, app can run and debug normally but when build apk file, the error show following :
Duplicate files copied in APK res/layout/notification_action.xml
File1: D:Plus-AndroidPlusMusebuildjarjarjarjar-20.jar
File2: D:Plus-AndroidPlusMusebuildjarjarjarjar-21.jar
I have search any websites and forum in order to find out solution but still can't help.
My dependencies :
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile jarjar.repackage {
from 'com.google.firebase:firebase-messaging:17.3.3'
classDelete "com.google.android.gms.common.util.VisibleForTesting.class"
}
compile jarjar.repackage {
from 'com.google.firebase:firebase-appindexing:16.0.2'
classDelete "android.arch.lifecycle.LifecycleOwner.class"
}
compile project(':libs:com_actionbarsherlock')
compile project(':libs:holoEverywhereLib')
compile project(':libs:recoMediaLibrary')
compile project(':libs:preLollipopTransition')
compile project(':lyrimokit')
compile 'com.google.code.gson:gson:2.8.1'
compile 'com.android.support:multidex:1.0.1'
compile 'com.android.support:support-v4:26.0.+'
compile 'com.google.firebase:firebase-core:16.0.4'
compile 'com.google.firebase:firebase-messaging:17.3.3'
compile 'com.google.firebase:firebase-appindexing:16.0.2'
compile('com.crashlytics.sdk.android:crashlytics:2.5.5@aar') {
transitive = true
}
}
apply plugin: 'com.google.gms.google-services'
My packagingOptions
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/notice.txt'
exclude 'META-INF/ASL2.0'
}
and
dependencies {
classpath 'com.android.tools.build:gradle:2.3.0'
classpath 'io.fabric.tools:gradle:1.+'
classpath 'com.google.gms:google-services:4.0.2'
classpath "org.anarres.jarjar:jarjar-gradle:1.0.0"
}
So, anybody can help me to find out solution ?
android firebase firebase-cloud-messaging apk
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have just migrate app from GCM to FCM, app can run and debug normally but when build apk file, the error show following :
Duplicate files copied in APK res/layout/notification_action.xml
File1: D:Plus-AndroidPlusMusebuildjarjarjarjar-20.jar
File2: D:Plus-AndroidPlusMusebuildjarjarjarjar-21.jar
I have search any websites and forum in order to find out solution but still can't help.
My dependencies :
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile jarjar.repackage {
from 'com.google.firebase:firebase-messaging:17.3.3'
classDelete "com.google.android.gms.common.util.VisibleForTesting.class"
}
compile jarjar.repackage {
from 'com.google.firebase:firebase-appindexing:16.0.2'
classDelete "android.arch.lifecycle.LifecycleOwner.class"
}
compile project(':libs:com_actionbarsherlock')
compile project(':libs:holoEverywhereLib')
compile project(':libs:recoMediaLibrary')
compile project(':libs:preLollipopTransition')
compile project(':lyrimokit')
compile 'com.google.code.gson:gson:2.8.1'
compile 'com.android.support:multidex:1.0.1'
compile 'com.android.support:support-v4:26.0.+'
compile 'com.google.firebase:firebase-core:16.0.4'
compile 'com.google.firebase:firebase-messaging:17.3.3'
compile 'com.google.firebase:firebase-appindexing:16.0.2'
compile('com.crashlytics.sdk.android:crashlytics:2.5.5@aar') {
transitive = true
}
}
apply plugin: 'com.google.gms.google-services'
My packagingOptions
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/notice.txt'
exclude 'META-INF/ASL2.0'
}
and
dependencies {
classpath 'com.android.tools.build:gradle:2.3.0'
classpath 'io.fabric.tools:gradle:1.+'
classpath 'com.google.gms:google-services:4.0.2'
classpath "org.anarres.jarjar:jarjar-gradle:1.0.0"
}
So, anybody can help me to find out solution ?
android firebase firebase-cloud-messaging apk
I have just migrate app from GCM to FCM, app can run and debug normally but when build apk file, the error show following :
Duplicate files copied in APK res/layout/notification_action.xml
File1: D:Plus-AndroidPlusMusebuildjarjarjarjar-20.jar
File2: D:Plus-AndroidPlusMusebuildjarjarjarjar-21.jar
I have search any websites and forum in order to find out solution but still can't help.
My dependencies :
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile jarjar.repackage {
from 'com.google.firebase:firebase-messaging:17.3.3'
classDelete "com.google.android.gms.common.util.VisibleForTesting.class"
}
compile jarjar.repackage {
from 'com.google.firebase:firebase-appindexing:16.0.2'
classDelete "android.arch.lifecycle.LifecycleOwner.class"
}
compile project(':libs:com_actionbarsherlock')
compile project(':libs:holoEverywhereLib')
compile project(':libs:recoMediaLibrary')
compile project(':libs:preLollipopTransition')
compile project(':lyrimokit')
compile 'com.google.code.gson:gson:2.8.1'
compile 'com.android.support:multidex:1.0.1'
compile 'com.android.support:support-v4:26.0.+'
compile 'com.google.firebase:firebase-core:16.0.4'
compile 'com.google.firebase:firebase-messaging:17.3.3'
compile 'com.google.firebase:firebase-appindexing:16.0.2'
compile('com.crashlytics.sdk.android:crashlytics:2.5.5@aar') {
transitive = true
}
}
apply plugin: 'com.google.gms.google-services'
My packagingOptions
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/notice.txt'
exclude 'META-INF/ASL2.0'
}
and
dependencies {
classpath 'com.android.tools.build:gradle:2.3.0'
classpath 'io.fabric.tools:gradle:1.+'
classpath 'com.google.gms:google-services:4.0.2'
classpath "org.anarres.jarjar:jarjar-gradle:1.0.0"
}
So, anybody can help me to find out solution ?
android firebase firebase-cloud-messaging apk
android firebase firebase-cloud-messaging apk
edited Nov 22 at 10:47
asked Nov 22 at 10:44
Le Minh
74
74
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
Go to file in android studio and do Invalidate cache/restart.
I have just tried but this new error show : Cause: duplicate entry: android/support/annotation/FractionRes.class
– Le Minh
Nov 22 at 10:55
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',
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%2f53429171%2fcannot-build-apk-file-after-migrate-from-gcm-to-fcm%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
Go to file in android studio and do Invalidate cache/restart.
I have just tried but this new error show : Cause: duplicate entry: android/support/annotation/FractionRes.class
– Le Minh
Nov 22 at 10:55
add a comment |
up vote
0
down vote
Go to file in android studio and do Invalidate cache/restart.
I have just tried but this new error show : Cause: duplicate entry: android/support/annotation/FractionRes.class
– Le Minh
Nov 22 at 10:55
add a comment |
up vote
0
down vote
up vote
0
down vote
Go to file in android studio and do Invalidate cache/restart.
Go to file in android studio and do Invalidate cache/restart.
answered Nov 22 at 10:48
Naresh Malviya
13
13
I have just tried but this new error show : Cause: duplicate entry: android/support/annotation/FractionRes.class
– Le Minh
Nov 22 at 10:55
add a comment |
I have just tried but this new error show : Cause: duplicate entry: android/support/annotation/FractionRes.class
– Le Minh
Nov 22 at 10:55
I have just tried but this new error show : Cause: duplicate entry: android/support/annotation/FractionRes.class
– Le Minh
Nov 22 at 10:55
I have just tried but this new error show : Cause: duplicate entry: android/support/annotation/FractionRes.class
– Le Minh
Nov 22 at 10:55
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%2f53429171%2fcannot-build-apk-file-after-migrate-from-gcm-to-fcm%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