Questions tagged [dex]

.dex files are compiled Android application code files.

Android programs are compiled into .dex (Dalvik Executable) files, which are in turn zipped into a single .apk file on the device. .dex files can be created by automatically translating compiled applications written in the Java programming language.

867 questions
53
votes
5 answers

Is there a way to get a list of all classes from a .dex file?

I have a .dex file, call it classes.dex. Is there a way to "read" the contents of that classes.dex and get a list of all classes in there as full class names, including their package, com.mypackage.mysubpackage.MyClass, for exmaple? I was thinking…
ioreskovic
  • 5,531
  • 5
  • 39
  • 70
51
votes
4 answers

Android Gradle: What is javaMaxHeapSize "4g"?

In an android project, build.gradle file, I have been through this line dexOptions{ javaMaxHeapSize "4g" } I would like to know the exact purpose of this javaMaxHeapSize and what does that 4g means. What are other values I can give ?
Kamalakannan J
  • 2,818
  • 3
  • 23
  • 51
41
votes
3 answers

Plugins architecture for an Android app?

THIS QUESTION HAS MOVED TO https://softwarerecs.stackexchange.com/questions/27841/plugins-architecture-for-an-android-app I want to implement a plugin system for an Open Source app, because it has become really large, with many features that only a…
Nicolas Raoul
  • 58,567
  • 58
  • 222
  • 373
39
votes
9 answers

com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex - Android Studio 3.0 stable

I made: In "Settings"->"Android SDK"->"SDK Tools" Google Play services is checked and installed v.46 Removed folder /.gradle "Clean Project" "Rebuild Project Error is: Error:Execution failed for task…
Nauman Shafique
  • 433
  • 1
  • 6
  • 15
36
votes
5 answers

Application too big? Unable to execute dex: Cannot merge new index into a non-jumbo instruction

I am getting the following error when I compile my app: [2014-05-07 21:48:42 - Dex Loader] Unable to execute dex: Cannot merge new index 65536 into a non-jumbo instruction! I am at the point that if I declare a new method anywhere in my package, I…
rupps
  • 9,712
  • 4
  • 55
  • 95
34
votes
2 answers

Difference between AAR, JAR, DEX, APK in Android

In Android systems or development enviroments, what are the differences between AAR, JAR, DEX, and APK files? What is the purpose of each one? AFAIK, JAR are just like a collection of .class files (like in Java). AAR are JAR files + resources. But…
sapito
  • 1,472
  • 3
  • 17
  • 26
34
votes
6 answers

Showing dex method count by package

I'm working on android app that's running up against the dex method count limit. Is there a simple way to show the method count grouped by package? I can get the total method count, but my app has multiple components and I'm trying to figure out…
ajma
  • 12,106
  • 12
  • 71
  • 90
33
votes
6 answers

Multiple dex files define /BuildConfig, can't find the cause:

I'm using the new gradle build system and I'm facing the following problem: UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dex.DexException: Multiple dex files define Lcom/kibo/mobi/BuildConfig; at…
Emil Adz
  • 40,709
  • 36
  • 140
  • 187
33
votes
12 answers

Is there a way to get count of number methods used in a jar file

Can i have the count of all methods used in a jar file . My APK uses certain external JARS and there are a number of classes around hundred to be precise. I have used decompilers like dex2jar JAD and others to name a few ,but they all seem to show…
freeky9
  • 355
  • 1
  • 4
  • 4
30
votes
3 answers

Difference between D8 and R8 android

As android studio introduced two new tools D8 and R8. As per google documentation D8 is a dex tool and R8 is a progourd tool but as their explanation both are doing almost same thing like below: D8 is a dexer that converts java byte code to dex…
0xAliHn
  • 18,390
  • 23
  • 91
  • 111
29
votes
17 answers

Dex Loader Unable to execute Multiple dex files define

Okay, now i'm really stuck here. I don't know what to do, where to go or ANYTHING! I have been trying to uninstall, reinstall, both SDK and Eclipse-versions, trying to Google this out, but nu-uh... Nothing!!! I CAN run my app in emulator, but i cant…
DreamHawk
  • 785
  • 2
  • 9
  • 20
28
votes
2 answers

Failed to verify dex: Bad method handle type 7

I'm trying to create a test example where I've the contents of a TextView is set to the contents of a file stored in the IPFS. I'm using this repository for my functions: https://github.com/ipfs/java-ipfs-api I keep getting what appears to be a…
Adrian Coutsoftides
  • 1,203
  • 1
  • 16
  • 38
28
votes
3 answers

Too many classes in --main-dex-list, main dex capacity exceeded

I'm trying to run instrumentation test cases but getting the below error while dex conversion UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dex.DexException: Too many classes in --main-dex-list, main dex capacity exceeded at…
28
votes
4 answers

Speed up Android project build time in IntelliJ IDEA

I am wondering, if there is any way, how to set skip packaging and dexing in IntelliJ IDEA like in Eclipse and ADT. There is Additional VM Options field in Android DX Compiler section in IntelliJ Preferences, maybe this could be a way, how to set…
sealskej
  • 7,281
  • 12
  • 53
  • 64
27
votes
2 answers

After update of AS to 1.0, getting "method ID not in [0, 0xffff]: 65536" error in project

I updated Android Studio to the latest version, and let it "fix the project" and the like - but now my project does not compile, gives me FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task…
EpicPandaForce
  • 79,669
  • 27
  • 256
  • 428
1
2
3
57 58