android-multidex

Android : Apache POI duplicate entry: org/apache/xmlbeans/xml/stream/Location.class error

笑着哭i 提交于 2019-12-29 09:07:23
问题 Hi I am getting following error while running my android project : Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. > com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: org/apache/xmlbeans/xml/stream/Location.class I have searched about this issue on internet, differenet type of solutions provided few of them as below : 1] Enable multidex, (by doing `multiDexEnabled true`), 2] Remove support library v4 as v7 comes

Error: Program type already present: android.support.v4.accessibilityservice.AccessibilityServiceInfoCompat

那年仲夏 提交于 2019-12-28 16:51:13
问题 After upgrading to Android Studio 3.1, I started to get following error during build. Project uses multidex and DX is enabled by default as you would notice in the error. I tried to check dependency graph to understand what is going on but so far have no clue. Interestingly this only fails on my machine. I cleaned up everything, including reinstall etc but nothing worked. Anyone had the same issue and how did you solve it? Or any direction that I can take a look? AGPBI: { "kind":"error",

Android - transform Classes With Dex For Debug

假装没事ソ 提交于 2019-12-28 03:01:28
问题 My project was working fine until I added the Facebook dependency. I've started getting this error. I've read many question, the problem seems to be related to MultiDex . But none of the solutions worked for me Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/lib/jvm/java-7-openjdk-amd64/bin/java''

com.android.dex.DexException given when trying to integrate Youtube Data API into android app

心不动则不痛 提交于 2019-12-25 09:58:40
问题 When I try to integrate Youtube DATA Api functionality into my app, I finally managed to resolve all errors. But when I run the project, it gives me the following error: UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dex.DexException: Multiple dex files define Lcom/google/api/client/auth/oauth/AbstractOAuthGetToken; at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:596) at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:554) at com.android.dx.merge.DexMerger

com.android.dex.DexException given when trying to integrate Youtube Data API into android app

时光总嘲笑我的痴心妄想 提交于 2019-12-25 09:58:25
问题 When I try to integrate Youtube DATA Api functionality into my app, I finally managed to resolve all errors. But when I run the project, it gives me the following error: UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dex.DexException: Multiple dex files define Lcom/google/api/client/auth/oauth/AbstractOAuthGetToken; at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:596) at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:554) at com.android.dx.merge.DexMerger

Android Studio Gradle error “Multiple dex files define…”

ぐ巨炮叔叔 提交于 2019-12-25 06:23:13
问题 My Project was working fine, until I added the volley library. Then, it started giving me an error like this: Error:Execution failed for task ':app:packageAllDebugClassesForMultiDex'.> java.util.zip.ZipException: duplicate entry: com/android/volley/AuthFailureError.class What should I do to fix this error? My App gradle is below apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "23.0.1" useLibrary 'org.apache.http.legacy' defaultConfig { applicationId

java.util.zip.ZipException: duplicate entry with spring framework

情到浓时终转凉″ 提交于 2019-12-24 13:03:50
问题 I'm developing android app with spring framework in android studio, i've this error Execution failed for task ':app:packageAllDebugClassesForMultiDex'. > java.util.zip.ZipException: duplicate entry: org/springframework/beans/BeansException.class I read some questions/answers but i don't find solution for my problems, example: java.util.zip.ZipException: duplicate entry during packageAllDebugClassesForMultiDex My build.brandle is android { compileSdkVersion 22 buildToolsVersion "22.0.1"

Multidex app can't find jar resource but only on some phones

。_饼干妹妹 提交于 2019-12-24 10:56:02
问题 This is sort of an update to an older question I asked, I made it into a new question since I have a lot of new information and I never got any useful answers. I have sort of fixed the issue but I want to understand why. The old questions: java.util.MissingResourceException: Can't find bundle for base name javax.servlet.LocalStrings Basically, a tiny percentage of my users will experience this crash. Fatal Exception: java.lang.ExceptionInInitializerError at MyApp$2.run(MyApp.java:364) at java

Error ':app:packageAllDebugClassesForMultiDex'. > java.util.zip.ZipException: duplicate entry:

此生再无相见时 提交于 2019-12-24 06:20:00
问题 I am developing android application for Home Automation using gradle in Android Studio. There is no problem when I build the project, but when I try to run the project, there is an error like this: Error:Execution failed for task ':app:packageAllDebugClassesForMultiDex'. java.util.zip.ZipException: duplicate entry: org/apache/http/params/CoreConnectionPNames.class Here is my build.gradle codes: apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "23.0.1"

Error ':app:packageAllDebugClassesForMultiDex'. > java.util.zip.ZipException: duplicate entry:

£可爱£侵袭症+ 提交于 2019-12-24 06:17:02
问题 I am developing android application for Home Automation using gradle in Android Studio. There is no problem when I build the project, but when I try to run the project, there is an error like this: Error:Execution failed for task ':app:packageAllDebugClassesForMultiDex'. java.util.zip.ZipException: duplicate entry: org/apache/http/params/CoreConnectionPNames.class Here is my build.gradle codes: apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "23.0.1"