Google Cloud Vision produce duplicate files in android studio
I'm using android studio and cloud vision in order to detect faces features in a picture. When compiling, I get this error (About cloud vision V 1.53):
Duplicate files copied in APK META-INF/INDEX.LIST
File1: /home/dragonklavier/.gradle/caches/modules-2/files-2.1/com.google.cloud/google-cloud-core-grpc/1.53.0/f86ad24d0f605abab1bd8020f2ab357125be404d/google-cloud-core-grpc-1.53.0.jar
File2: /home/dragonklavier/.gradle/caches/modules-2/files-2.1/com.google.cloud/google-cloud-vision/1.53.0/e54a24754ed11d72bfd9f0b8d0d078dca3c7533f/google-cloud-vision-1.53.0.jar
File3: /home/dragonklavier/.gradle/caches/modules-2/files-2.1/com.google.cloud/google-cloud-core/1.53.0/3f87dfdae359ce1cdb738d4feac6569792f54ee9/google-cloud-core-1.53.0.jar
My Gradles dependencies are:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
exclude group: 'com.google.code.findbugs'
})
testCompile 'junit:junit:4.12'
compile 'com.google.android.gms:play-services-appindexing:9.0.0'
compile 'com.google.android.gms:play-services-auth:9.0.0'
compile 'com.android.support:appcompat-v7:25.1.1'
compile 'com.android.support:design:25.1.1'
compile 'com.google.cloud:google-cloud-vision:1.53.0'
compile 'net.sourceforge.owlapi:owlapi-distribution:3.4.3'
//compile 'com.android.billingclient:billing:1.1'
compile('com.sangcomz:FishBun:0.6.4@aar') {
transitive = true
}
compile 'com.github.PhilJay:MPAndroidChart:v3.0.1'
}
android api gradle
add a comment |
I'm using android studio and cloud vision in order to detect faces features in a picture. When compiling, I get this error (About cloud vision V 1.53):
Duplicate files copied in APK META-INF/INDEX.LIST
File1: /home/dragonklavier/.gradle/caches/modules-2/files-2.1/com.google.cloud/google-cloud-core-grpc/1.53.0/f86ad24d0f605abab1bd8020f2ab357125be404d/google-cloud-core-grpc-1.53.0.jar
File2: /home/dragonklavier/.gradle/caches/modules-2/files-2.1/com.google.cloud/google-cloud-vision/1.53.0/e54a24754ed11d72bfd9f0b8d0d078dca3c7533f/google-cloud-vision-1.53.0.jar
File3: /home/dragonklavier/.gradle/caches/modules-2/files-2.1/com.google.cloud/google-cloud-core/1.53.0/3f87dfdae359ce1cdb738d4feac6569792f54ee9/google-cloud-core-1.53.0.jar
My Gradles dependencies are:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
exclude group: 'com.google.code.findbugs'
})
testCompile 'junit:junit:4.12'
compile 'com.google.android.gms:play-services-appindexing:9.0.0'
compile 'com.google.android.gms:play-services-auth:9.0.0'
compile 'com.android.support:appcompat-v7:25.1.1'
compile 'com.android.support:design:25.1.1'
compile 'com.google.cloud:google-cloud-vision:1.53.0'
compile 'net.sourceforge.owlapi:owlapi-distribution:3.4.3'
//compile 'com.android.billingclient:billing:1.1'
compile('com.sangcomz:FishBun:0.6.4@aar') {
transitive = true
}
compile 'com.github.PhilJay:MPAndroidChart:v3.0.1'
}
android api gradle
add a comment |
I'm using android studio and cloud vision in order to detect faces features in a picture. When compiling, I get this error (About cloud vision V 1.53):
Duplicate files copied in APK META-INF/INDEX.LIST
File1: /home/dragonklavier/.gradle/caches/modules-2/files-2.1/com.google.cloud/google-cloud-core-grpc/1.53.0/f86ad24d0f605abab1bd8020f2ab357125be404d/google-cloud-core-grpc-1.53.0.jar
File2: /home/dragonklavier/.gradle/caches/modules-2/files-2.1/com.google.cloud/google-cloud-vision/1.53.0/e54a24754ed11d72bfd9f0b8d0d078dca3c7533f/google-cloud-vision-1.53.0.jar
File3: /home/dragonklavier/.gradle/caches/modules-2/files-2.1/com.google.cloud/google-cloud-core/1.53.0/3f87dfdae359ce1cdb738d4feac6569792f54ee9/google-cloud-core-1.53.0.jar
My Gradles dependencies are:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
exclude group: 'com.google.code.findbugs'
})
testCompile 'junit:junit:4.12'
compile 'com.google.android.gms:play-services-appindexing:9.0.0'
compile 'com.google.android.gms:play-services-auth:9.0.0'
compile 'com.android.support:appcompat-v7:25.1.1'
compile 'com.android.support:design:25.1.1'
compile 'com.google.cloud:google-cloud-vision:1.53.0'
compile 'net.sourceforge.owlapi:owlapi-distribution:3.4.3'
//compile 'com.android.billingclient:billing:1.1'
compile('com.sangcomz:FishBun:0.6.4@aar') {
transitive = true
}
compile 'com.github.PhilJay:MPAndroidChart:v3.0.1'
}
android api gradle
I'm using android studio and cloud vision in order to detect faces features in a picture. When compiling, I get this error (About cloud vision V 1.53):
Duplicate files copied in APK META-INF/INDEX.LIST
File1: /home/dragonklavier/.gradle/caches/modules-2/files-2.1/com.google.cloud/google-cloud-core-grpc/1.53.0/f86ad24d0f605abab1bd8020f2ab357125be404d/google-cloud-core-grpc-1.53.0.jar
File2: /home/dragonklavier/.gradle/caches/modules-2/files-2.1/com.google.cloud/google-cloud-vision/1.53.0/e54a24754ed11d72bfd9f0b8d0d078dca3c7533f/google-cloud-vision-1.53.0.jar
File3: /home/dragonklavier/.gradle/caches/modules-2/files-2.1/com.google.cloud/google-cloud-core/1.53.0/3f87dfdae359ce1cdb738d4feac6569792f54ee9/google-cloud-core-1.53.0.jar
My Gradles dependencies are:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
exclude group: 'com.google.code.findbugs'
})
testCompile 'junit:junit:4.12'
compile 'com.google.android.gms:play-services-appindexing:9.0.0'
compile 'com.google.android.gms:play-services-auth:9.0.0'
compile 'com.android.support:appcompat-v7:25.1.1'
compile 'com.android.support:design:25.1.1'
compile 'com.google.cloud:google-cloud-vision:1.53.0'
compile 'net.sourceforge.owlapi:owlapi-distribution:3.4.3'
//compile 'com.android.billingclient:billing:1.1'
compile('com.sangcomz:FishBun:0.6.4@aar') {
transitive = true
}
compile 'com.github.PhilJay:MPAndroidChart:v3.0.1'
}
android api gradle
android api gradle
asked Nov 28 '18 at 8:41
Hernán Humberto Álvarez ValeraHernán Humberto Álvarez Valera
13
13
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
add this too your gradle
android{
compileSdkVersion sdk_version
defaultConfig {
//config
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/notice.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/dependencies.txt'
exclude 'META-INF/LGPL2.1'
}
}
Thank you, but it doesn't work.
– Hernán Humberto Álvarez Valera
Nov 28 '18 at 10:01
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%2f53515301%2fgoogle-cloud-vision-produce-duplicate-files-in-android-studio%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
add this too your gradle
android{
compileSdkVersion sdk_version
defaultConfig {
//config
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/notice.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/dependencies.txt'
exclude 'META-INF/LGPL2.1'
}
}
Thank you, but it doesn't work.
– Hernán Humberto Álvarez Valera
Nov 28 '18 at 10:01
add a comment |
add this too your gradle
android{
compileSdkVersion sdk_version
defaultConfig {
//config
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/notice.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/dependencies.txt'
exclude 'META-INF/LGPL2.1'
}
}
Thank you, but it doesn't work.
– Hernán Humberto Álvarez Valera
Nov 28 '18 at 10:01
add a comment |
add this too your gradle
android{
compileSdkVersion sdk_version
defaultConfig {
//config
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/notice.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/dependencies.txt'
exclude 'META-INF/LGPL2.1'
}
}
add this too your gradle
android{
compileSdkVersion sdk_version
defaultConfig {
//config
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/notice.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/dependencies.txt'
exclude 'META-INF/LGPL2.1'
}
}
answered Nov 28 '18 at 8:54
RadeshRadesh
4,25411634
4,25411634
Thank you, but it doesn't work.
– Hernán Humberto Álvarez Valera
Nov 28 '18 at 10:01
add a comment |
Thank you, but it doesn't work.
– Hernán Humberto Álvarez Valera
Nov 28 '18 at 10:01
Thank you, but it doesn't work.
– Hernán Humberto Álvarez Valera
Nov 28 '18 at 10:01
Thank you, but it doesn't work.
– Hernán Humberto Álvarez Valera
Nov 28 '18 at 10:01
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%2f53515301%2fgoogle-cloud-vision-produce-duplicate-files-in-android-studio%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