Questions tagged [android-multidex]

Multidex is an Android technology that splits the classes of an Application (and its dependencies) into multiple dex files. (Dex being the format of the classes for the Dalvik/ART VM). Multidex is a workaround the 65 k maximal methods count inside a dex file.

Multidex is an Android technology that splits the classes of an Application (and its dependencies) into multiple dex files. (Dex being the format of the classes for the Dalvik/ART VM). Multidex is a workaround the 65k maximal methods count inside a dex file.

Package Summary

Features

Note that multidex is built-in in Art (Android SDK 5, Lollipop) and is also part of the support libraries

720 questions
4
votes
2 answers

Test apk multidexed won't run on api-19

On my current project our test APK has grown over the 64k method limit. We have multidex enabled, so running tests on a device with API > 19 , gives no problems, but on API 19 the runner can't find classes in the second dex file. I have tried…
4
votes
0 answers

Stranger things in Android class resolution

I observe quite a few behaviors on Android (I am working on a multidex issue, so I use an emulator in 4.4.4) that leave me speechless about Android class loading: On Android classes are not supposed to be resolved when being loaded by the class…
Snicolas
  • 37,840
  • 15
  • 114
  • 173
4
votes
6 answers

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

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:…
Prashant
  • 4,474
  • 8
  • 34
  • 82
4
votes
3 answers

Android: duplicati entry error while build APK file

When I build an APK file with android studio (version 2.0) for my project, there is a error: Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. > com.android.build.api.transform.TransformException:…
NghiaDao
  • 383
  • 1
  • 3
  • 14
4
votes
0 answers

Paypal service is not starting (sandbox account), am getting below error

I have an activity named sample activity.From that activity i opened an intent, that was navigationlayout1 activity, which had a paypal service. Oncreate this service should be added like they(paypal) done in their example. I have not had this…
Visal Varghese
  • 436
  • 5
  • 14
4
votes
1 answer

TransformClassesWithJarMergingForRelease Android

Hello Everyone i have one issue on generate signed apk with android studio. I have search a lot on this but did't find working solution in my case, iknow this is the issue related to duplicate class entry but can anyone tell me which i need to…
Ajay Pandya
  • 2,417
  • 4
  • 29
  • 65
4
votes
4 answers

:app:transformClassesWithMultidexlistForDebug FAILED

I have tried the following links http://developer.android.com/intl/es/tools/building/multidex.html UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dex.DexException: Multiple dex files…
novice_dev
  • 702
  • 1
  • 7
  • 22
4
votes
1 answer

Using MultiDex in Android App runs ProGuard twice and only second time with Warnings/Notes?

I use MultiDex and ProGuard in my Android app. When I run my app it turns out that proguard runs twice. Here are the tasks after which proguard runs: :app:transformClassesAndResourcesWithProguardForRelease ProGuard, version…
Michael
  • 32,527
  • 49
  • 210
  • 370
4
votes
3 answers

java.exe exited with code 2(MSB6006) Trouble writing output: Too many field references: 81626; max is 65536

I am developing xamarin android app and in this many packages and references are used (Google play services). When I try to build this project I get this error: java.exe exited with code 2 Trouble writing output: Too many field references: 81626;…
Parth Savadiya
  • 1,203
  • 3
  • 18
  • 40
4
votes
2 answers

Duplicate entry using Parse and Multidex

My project is a Chat app that uses Parse. After added other dependencies, this problem started appearing: Error:Execution failed for task ':app:dexDebug'. com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException:…
André Dantas
  • 163
  • 1
  • 13
4
votes
1 answer

Too many method references in android library project - ClassNotFoundException

I have library project which I am using in main android project using AAR file. I am getting the famous 65k method limit now which I have expected, but I have few queries. I have added AAR file in libs folder of my main project and compiled the same…
Scorpion
  • 6,831
  • 16
  • 75
  • 123
4
votes
1 answer

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException

I am using Android studio 1.2.2. I've integrated maps 4 work sdk, after this the Build is failing, We are using google play services lib in our project (using only com.google.android.gms.tagmanager.*). Now after integrating googlemaps_sdk_m4b_lib,…
ktir
  • 43
  • 1
  • 5
4
votes
1 answer

Android Studio 1.3 multidex error in gradle

I can't build project properly after I updated my Android Studio to 1.3 version. I found in project gradle file error in line compile 'com.android.support:multidex:1.0.1' and it says This support library should not use a lower version (1) than the…
rwojcik
  • 1,030
  • 9
  • 18
4
votes
0 answers

Running a standalone multi-dex jar on Android Kitkat

I've been trying to run Java applications on android devices as standalone jars (not as apk's). Everything went fine in the beginning: I used the dex compiler from the Android SDK, packed the dex file into a jar, pushed it to the device and used a…
4
votes
1 answer

Strange ClassCastException in findViewById

I observe a weird exception thrown on line: viewPager = (ViewPager) view.findViewById(R.id.pager); the exception looks as follows: java.lang.ClassCastException: android.support.v4.view.ViewPager cannot be cast to…