Questions tagged [dx]

dx is a tool that comes with the Android SDK that is used to convert java bytecode to dalvik bytecode

74 questions
49
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,122
  • 5
  • 34
  • 62
24
votes
3 answers

Android dx tool

Does anyone know of any documentation for dx? In particular I am interested in knowing what the --core-library option does. Can anybody shed any light on that?
Liz
  • 605
  • 4
  • 9
  • 14
24
votes
8 answers

Android: my application is too large and gives "Unable to execute dex: method ID not in [0, 0xffff]: 65536"?

I am trying to integrate my application with Box, Dropbox, and Google Drive. All 3 of these services require a number of 3rd party jars. Additionally, my application already requires a few 3rd party jars. Now when I try to run my application from…
ab11
  • 18,490
  • 37
  • 104
  • 194
19
votes
5 answers

How to convert .jar or .class to .dex file?

I'm going to edit Opera Mini v6.5 server because it is blocked in our country. Now I have unpacked the .apk file extracted classes.Dex then converted it via dex2jar.bat, now modified the server. My problem is I want to repack the .jar or .class to…
Sadra Naddaf
  • 337
  • 1
  • 2
  • 16
19
votes
8 answers

Android Studio: Failed to load dx.jar

When I run my module in Android Studio I get this error: Error:Android Dex: [GradleDevBuild] Failed to load dx.jar I have searched endlessly for a solution online but everything is related to eclipse, there is nothing when it comes to Android…
fourthking
  • 311
  • 1
  • 3
  • 17
10
votes
6 answers

Android Dex: Unable to execute DX (IntelliJ)

I follow the steps from https://stackoverflow.com/a/5271194/1973953 this link. But when i run an application i am getting these errors i have only one line in my project.properties file "target=android-11" And this is my AndroidManifest.xml So my…
Tanmay Majumder
  • 392
  • 1
  • 3
  • 15
8
votes
1 answer

ANDROID - dx processing too slow

Is there a way in eclipse to pass parameter to dx (--no-optimize, etc) to improve speed of dx processing?
Jonathan
  • 718
  • 8
  • 22
8
votes
1 answer

unable to build: the file dx.jar was not loaded from the SDK folder

i noticed in the "console" box of my Eclipse program, that it said "C:\Program Files\Android\android-sdk\platform-tools\lib" , so it has 2 back slashes \platform-tools\lib, this was caused by incomplete installation on my part, so it cannot find the…
pamaiva
  • 81
  • 2
  • 5
7
votes
2 answers

Managing android projects from command line

I am managing and running my android app from command line without using ant, I followed these steps: generate R.java compile R.java and all .java files in src to .class files assembling set of class files into dex file using the command below dx…
rajNaveen
  • 145
  • 7
7
votes
6 answers

How can I use the `--multi-dex` option?

[2013-11-13 18:39:09 - XlApp] Dx trouble writing output: Too many method references: 66024; max is 65536. You may try using --multi-dex option. References by package: 13 java.lang 1 java.lang.reflect 5 java.util 1…
n.arrow001
  • 910
  • 1
  • 8
  • 26
6
votes
2 answers

HelloWorld cannot run under dalvikvm

I'm trying the Hello World example from https://android.googlesource.com/platform/dalvik/+/gingerbread/docs/hello-world.html However, my Foo program did not run; dalvikvm complained about the following: Dalvik VM unable to locate class 'Foo' …
user761567
  • 213
  • 3
  • 8
5
votes
1 answer

Where r8.jar is located inside Android SDK?

I'm trying out Android's D8 and R8. As the documentation says the command to run D8 is the following: java -jar build/libs/d8.jar --release --output out input.jar And for R8: java -jar build/libs/r8.jar --release --output out --pg-conf…
Andrii Lisun
  • 603
  • 4
  • 18
5
votes
0 answers

D8 Compiler is much slower than Dx Compiler

I've updated Android Gradle Plugin to 3.3.2 and faced with the issue that build time is dramatically slower in comparison with 3.0.1. DX takes 1min 40s - 2min 20s for clean build and around 1 min for rebuild when D8 takes 9min for clean build and…
Sergey Zabelnikov
  • 1,178
  • 11
  • 23
5
votes
2 answers

Compile with D8

I want to use the recently introduced D8 compiler from Google to build a dex file. Unfortunately, I didn't find the jar executable in the build-tools folder (like the dx tool). Does anyone know where it's located instead? Thanks in advance.
False
  • 101
  • 10
4
votes
1 answer

Bad class file magic when using dx.bat

I need to build my Android application using the command line, when I get to the point that I must use dx.bat to convert to Dalvik bytecode dx.bat --dex --output=C:/local_programs/testProject/bin/classes.dex…
TurnsCoffeeIntoScripts
  • 3,572
  • 7
  • 36
  • 46
1
2 3 4 5