Duplicate zip entry [57.jar:android/support/v4/app/NotificationCompat.class]
I am trying to solve one problem for a few days.
When I run my app, I get this error:
Error:Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.
> java.io.IOException: Can't write [/Users/mac/AndroidStudioProjects/AminSupportGroup/
app/build/intermediates/multi-dex/debug/componentClasses.jar]
(Can't read [/Users/mac/AndroidStudioProjects/
AminSupportGroup/app/
build/intermediates/transforms/desugar/debug/55.jar(;;;;;;**.class)]
(Duplicate zip entry [55.jar:android/support/v4/app/NotificationCompat.class]))
My module:app build.gradle where i think there is the problem :
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
buildToolsVersion "28.0.3"
defaultConfig {
applicationId "com.aminertebat.aminsupportgroup"
minSdkVersion 16
targetSdkVersion 28
versionCode 1
versionName "1.0.22"
multiDexEnabled true
vectorDrawables.useSupportLibrary = true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
}
}
compileOptions {
targetCompatibility 1.8
sourceCompatibility 1.8
}
}
ext {
BUTTERKNIFE = '8.8.1'
FAB = '1.6.4'
FIREBASE = '9.0.2'
MATERIAL_DIALOG = '0.9.1.0'
MATERIAL_DRAWER = '5.7.0'
MATERIAL_EDIT_TEXT = '2.1.4'
PLAY_SERVICE = '9.0.2'
SLIDING_TUTORIAL = '1.0.3'
SUPPORT_LIBRARY = '28.0.0'
RETROFIT = '2.2.0'
SMART_TAB_LAYOUT = '1.6.1'
EVENT_BUS = '3.0.0'
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testImplementation 'junit:junit:4.12'
implementation "com.android.support:appcompat-v7:${SUPPORT_LIBRARY}"
implementation "com.android.support:cardview-v7:${SUPPORT_LIBRARY}"
implementation "com.android.support:recyclerview-v7:${SUPPORT_LIBRARY}"
implementation "com.android.support:design:${SUPPORT_LIBRARY}"
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.github.rey5137:material:1.2.4'
implementation 'com.android.volley:volley:1.0.0'
implementation "com.google.android.gms:play-services-gcm:10.2.1"
implementation 'com.google.firebase:firebase-core:10.2.1'
implementation 'com.google.firebase:firebase-messaging:10.2.1'
implementation "com.jakewharton:butterknife:${BUTTERKNIFE}"
annotationProcessor "com.jakewharton:butterknife-compiler:${BUTTERKNIFE}"
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.github.myinnos:AppFontChanger:1.0'
implementation 'com.mohamadamin:persianmaterialdatetimepicker:1.2.1'
implementation 'me.leolin:ShortcutBadger:1.1.22@aar'
implementation 'com.adpdigital.push:chabok-lib:2.13.2'
//implementation 'com.stepstone.apprating:app-rating:2.3.0'
}
// Add to the bottom of the file
apply plugin: 'com.google.gms.google-services'
java android firebase android-gradle
add a comment |
I am trying to solve one problem for a few days.
When I run my app, I get this error:
Error:Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.
> java.io.IOException: Can't write [/Users/mac/AndroidStudioProjects/AminSupportGroup/
app/build/intermediates/multi-dex/debug/componentClasses.jar]
(Can't read [/Users/mac/AndroidStudioProjects/
AminSupportGroup/app/
build/intermediates/transforms/desugar/debug/55.jar(;;;;;;**.class)]
(Duplicate zip entry [55.jar:android/support/v4/app/NotificationCompat.class]))
My module:app build.gradle where i think there is the problem :
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
buildToolsVersion "28.0.3"
defaultConfig {
applicationId "com.aminertebat.aminsupportgroup"
minSdkVersion 16
targetSdkVersion 28
versionCode 1
versionName "1.0.22"
multiDexEnabled true
vectorDrawables.useSupportLibrary = true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
}
}
compileOptions {
targetCompatibility 1.8
sourceCompatibility 1.8
}
}
ext {
BUTTERKNIFE = '8.8.1'
FAB = '1.6.4'
FIREBASE = '9.0.2'
MATERIAL_DIALOG = '0.9.1.0'
MATERIAL_DRAWER = '5.7.0'
MATERIAL_EDIT_TEXT = '2.1.4'
PLAY_SERVICE = '9.0.2'
SLIDING_TUTORIAL = '1.0.3'
SUPPORT_LIBRARY = '28.0.0'
RETROFIT = '2.2.0'
SMART_TAB_LAYOUT = '1.6.1'
EVENT_BUS = '3.0.0'
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testImplementation 'junit:junit:4.12'
implementation "com.android.support:appcompat-v7:${SUPPORT_LIBRARY}"
implementation "com.android.support:cardview-v7:${SUPPORT_LIBRARY}"
implementation "com.android.support:recyclerview-v7:${SUPPORT_LIBRARY}"
implementation "com.android.support:design:${SUPPORT_LIBRARY}"
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.github.rey5137:material:1.2.4'
implementation 'com.android.volley:volley:1.0.0'
implementation "com.google.android.gms:play-services-gcm:10.2.1"
implementation 'com.google.firebase:firebase-core:10.2.1'
implementation 'com.google.firebase:firebase-messaging:10.2.1'
implementation "com.jakewharton:butterknife:${BUTTERKNIFE}"
annotationProcessor "com.jakewharton:butterknife-compiler:${BUTTERKNIFE}"
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.github.myinnos:AppFontChanger:1.0'
implementation 'com.mohamadamin:persianmaterialdatetimepicker:1.2.1'
implementation 'me.leolin:ShortcutBadger:1.1.22@aar'
implementation 'com.adpdigital.push:chabok-lib:2.13.2'
//implementation 'com.stepstone.apprating:app-rating:2.3.0'
}
// Add to the bottom of the file
apply plugin: 'com.google.gms.google-services'
java android firebase android-gradle
Have you tried to update all your dependencies to the latest versions?
– Alex Mamo
Nov 15 '18 at 12:31
add a comment |
I am trying to solve one problem for a few days.
When I run my app, I get this error:
Error:Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.
> java.io.IOException: Can't write [/Users/mac/AndroidStudioProjects/AminSupportGroup/
app/build/intermediates/multi-dex/debug/componentClasses.jar]
(Can't read [/Users/mac/AndroidStudioProjects/
AminSupportGroup/app/
build/intermediates/transforms/desugar/debug/55.jar(;;;;;;**.class)]
(Duplicate zip entry [55.jar:android/support/v4/app/NotificationCompat.class]))
My module:app build.gradle where i think there is the problem :
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
buildToolsVersion "28.0.3"
defaultConfig {
applicationId "com.aminertebat.aminsupportgroup"
minSdkVersion 16
targetSdkVersion 28
versionCode 1
versionName "1.0.22"
multiDexEnabled true
vectorDrawables.useSupportLibrary = true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
}
}
compileOptions {
targetCompatibility 1.8
sourceCompatibility 1.8
}
}
ext {
BUTTERKNIFE = '8.8.1'
FAB = '1.6.4'
FIREBASE = '9.0.2'
MATERIAL_DIALOG = '0.9.1.0'
MATERIAL_DRAWER = '5.7.0'
MATERIAL_EDIT_TEXT = '2.1.4'
PLAY_SERVICE = '9.0.2'
SLIDING_TUTORIAL = '1.0.3'
SUPPORT_LIBRARY = '28.0.0'
RETROFIT = '2.2.0'
SMART_TAB_LAYOUT = '1.6.1'
EVENT_BUS = '3.0.0'
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testImplementation 'junit:junit:4.12'
implementation "com.android.support:appcompat-v7:${SUPPORT_LIBRARY}"
implementation "com.android.support:cardview-v7:${SUPPORT_LIBRARY}"
implementation "com.android.support:recyclerview-v7:${SUPPORT_LIBRARY}"
implementation "com.android.support:design:${SUPPORT_LIBRARY}"
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.github.rey5137:material:1.2.4'
implementation 'com.android.volley:volley:1.0.0'
implementation "com.google.android.gms:play-services-gcm:10.2.1"
implementation 'com.google.firebase:firebase-core:10.2.1'
implementation 'com.google.firebase:firebase-messaging:10.2.1'
implementation "com.jakewharton:butterknife:${BUTTERKNIFE}"
annotationProcessor "com.jakewharton:butterknife-compiler:${BUTTERKNIFE}"
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.github.myinnos:AppFontChanger:1.0'
implementation 'com.mohamadamin:persianmaterialdatetimepicker:1.2.1'
implementation 'me.leolin:ShortcutBadger:1.1.22@aar'
implementation 'com.adpdigital.push:chabok-lib:2.13.2'
//implementation 'com.stepstone.apprating:app-rating:2.3.0'
}
// Add to the bottom of the file
apply plugin: 'com.google.gms.google-services'
java android firebase android-gradle
I am trying to solve one problem for a few days.
When I run my app, I get this error:
Error:Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.
> java.io.IOException: Can't write [/Users/mac/AndroidStudioProjects/AminSupportGroup/
app/build/intermediates/multi-dex/debug/componentClasses.jar]
(Can't read [/Users/mac/AndroidStudioProjects/
AminSupportGroup/app/
build/intermediates/transforms/desugar/debug/55.jar(;;;;;;**.class)]
(Duplicate zip entry [55.jar:android/support/v4/app/NotificationCompat.class]))
My module:app build.gradle where i think there is the problem :
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
buildToolsVersion "28.0.3"
defaultConfig {
applicationId "com.aminertebat.aminsupportgroup"
minSdkVersion 16
targetSdkVersion 28
versionCode 1
versionName "1.0.22"
multiDexEnabled true
vectorDrawables.useSupportLibrary = true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
}
}
compileOptions {
targetCompatibility 1.8
sourceCompatibility 1.8
}
}
ext {
BUTTERKNIFE = '8.8.1'
FAB = '1.6.4'
FIREBASE = '9.0.2'
MATERIAL_DIALOG = '0.9.1.0'
MATERIAL_DRAWER = '5.7.0'
MATERIAL_EDIT_TEXT = '2.1.4'
PLAY_SERVICE = '9.0.2'
SLIDING_TUTORIAL = '1.0.3'
SUPPORT_LIBRARY = '28.0.0'
RETROFIT = '2.2.0'
SMART_TAB_LAYOUT = '1.6.1'
EVENT_BUS = '3.0.0'
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testImplementation 'junit:junit:4.12'
implementation "com.android.support:appcompat-v7:${SUPPORT_LIBRARY}"
implementation "com.android.support:cardview-v7:${SUPPORT_LIBRARY}"
implementation "com.android.support:recyclerview-v7:${SUPPORT_LIBRARY}"
implementation "com.android.support:design:${SUPPORT_LIBRARY}"
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.github.rey5137:material:1.2.4'
implementation 'com.android.volley:volley:1.0.0'
implementation "com.google.android.gms:play-services-gcm:10.2.1"
implementation 'com.google.firebase:firebase-core:10.2.1'
implementation 'com.google.firebase:firebase-messaging:10.2.1'
implementation "com.jakewharton:butterknife:${BUTTERKNIFE}"
annotationProcessor "com.jakewharton:butterknife-compiler:${BUTTERKNIFE}"
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.github.myinnos:AppFontChanger:1.0'
implementation 'com.mohamadamin:persianmaterialdatetimepicker:1.2.1'
implementation 'me.leolin:ShortcutBadger:1.1.22@aar'
implementation 'com.adpdigital.push:chabok-lib:2.13.2'
//implementation 'com.stepstone.apprating:app-rating:2.3.0'
}
// Add to the bottom of the file
apply plugin: 'com.google.gms.google-services'
java android firebase android-gradle
java android firebase android-gradle
asked Nov 15 '18 at 12:29
david_ramezanidavid_ramezani
283
283
Have you tried to update all your dependencies to the latest versions?
– Alex Mamo
Nov 15 '18 at 12:31
add a comment |
Have you tried to update all your dependencies to the latest versions?
– Alex Mamo
Nov 15 '18 at 12:31
Have you tried to update all your dependencies to the latest versions?
– Alex Mamo
Nov 15 '18 at 12:31
Have you tried to update all your dependencies to the latest versions?
– Alex Mamo
Nov 15 '18 at 12:31
add a comment |
0
active
oldest
votes
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%2f53319557%2fduplicate-zip-entry-57-jarandroid-support-v4-app-notificationcompat-class%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f53319557%2fduplicate-zip-entry-57-jarandroid-support-v4-app-notificationcompat-class%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
Have you tried to update all your dependencies to the latest versions?
– Alex Mamo
Nov 15 '18 at 12:31