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
773
votes
17 answers

How to decompile DEX into Java source code?

How can one decompile Android DEX (VM bytecode) files into corresponding Java source code?
Will
  • 73,905
  • 40
  • 169
  • 246
397
votes
54 answers

Unable to execute dex: Multiple dex files define Lcom/myapp/R$array;

Since updating to ADT 14 I can no longer build my project. It was building fine prior to updating. The error: [2011-10-23 16:23:29 - Dex Loader] Unable to execute dex: Multiple dex files define Lcom/myapp/R$array; [2011-10-23 16:23:29 - myProj]…
terry
  • 2,032
  • 4
  • 17
  • 11
347
votes
12 answers

Unable to execute dex: method ID not in [0, 0xffff]: 65536

I have seen various versions of the dex erros before, but this one is new. clean/restart etc won't help. Library projects seems intact and dependency seems to be linked correctly. Unable to execute dex: method ID not in [0, 0xffff]:…
Edison
  • 5,961
  • 4
  • 23
  • 39
324
votes
63 answers

Unable to merge dex

I have Android Studio Beta. I created a new project with compile my old modules but when I tried launching the app it did not launch with the message: Error:Execution failed for task…
Parad0X
  • 3,634
  • 2
  • 12
  • 23
229
votes
3 answers

What are .dex files in Android?

I have some questions regarding dex files What is a dex file in Android? How does dex work for Android? How are they used in debugging an Android app? Are they similar to java class files? I need specific information please help on this and any…
Nikunj Patel
  • 21,853
  • 23
  • 89
  • 133
174
votes
19 answers

Android dex gives a BufferOverflowException when building

When compiling a specific Android project, and only on my Windows machine, I get a java.nio.BufferOverflowException during from dex. The problem occurs both when using Eclipse and when using Ant. The output when using Ant is: ... [dex] Pre-Dexing…
beetstra
  • 7,942
  • 5
  • 40
  • 44
95
votes
8 answers

Android gives error "Cannot fit requested classes in a single dex file"

I don't know why but it's impossible to launch my app on my mobile this morning. I get this error message: Cannot fit requested classes in a single dex file. Try supplying a main-dex list. # methods: 68061 > 65536 Message{kind=ERROR, text=Cannot…
KevinB
  • 2,454
  • 3
  • 25
  • 49
93
votes
7 answers

Is it possible to decompile an Android .apk file?

Are the users able to convert the apk file of my application back to the actual code? If they do - is there any way to prevent this?
aryaxt
  • 76,198
  • 92
  • 293
  • 442
91
votes
12 answers

How to shrink code - 65k method limit in dex

I have a rather large Android app that relies on many library projects. The Android compiler has a limitation of 65536 methods per .dex file and I am surpassing that number. There are basically two paths you can choose (at least that I know of)…
Jared Rummler
  • 37,824
  • 19
  • 133
  • 148
82
votes
4 answers

How to extract code of .apk file which is not working?

Actually I was trying to extract code of a .apk file called cloudfilz.apk and wanted to manipulate in its source code so I followed the steps given below:- make a new folder and put .apk file (which you want to decode) now rename this .apk file with…
Gaurav Chawla
  • 1,847
  • 3
  • 18
  • 26
65
votes
15 answers

Didn't find class "android.support.multidex.MultiDexApplication" on path: DexPathList

I'm trying the new MultiDex Support on my app and so far I've managed to compile my app correctly, but when running it, I get the following exception: java.lang.RuntimeException: Unable to instantiate application…
Roberto Betancourt
  • 2,375
  • 3
  • 27
  • 35
59
votes
4 answers

Using SimpleXML with Android and Gradle

I'm having troubles trying to compile an Android application with Gradle 0.5.+ and Android Studio, using SimpleXML. This is the error: Gradle: Execution failed for task ':MyApplication:dexDebug'. > Failed to run command: /Applications/Android…
Luca Vitucci
  • 3,674
  • 4
  • 36
  • 60
57
votes
1 answer

Android app crashes at start with "E/dex2oat: Failed to create oat file" and "non-0 exit status"

My app (still WIP) runs fine on different devices. But suddenly it refuses to start on Huawei Honor 7 (Android 6.0/EMUI 4.0.3). Logcat gives me the following: E/dex2oat: Failed to create oat…
knutella
  • 1,223
  • 2
  • 12
  • 12
57
votes
2 answers

What is Smali Code Android

I am going to learn a little bit about Dalvik VM, dex and Smali. I have read about smali, but still cannot clearly understand where its place in chain of compilers. And what its purpose. Here some questions: As I know, dalvik as other Virtual…
user4598738
53
votes
15 answers

Dex error On Android Studio 3.0 Beta4

Error:java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex Error:java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge…
Ankita-AR
  • 780
  • 1
  • 6
  • 11
1
2 3
57 58