Questions tagged [dx]

DX is a tool that comes with the Android SDK that is used to convert Java bytecode to Dalvik bytecode

DX is a tool that comes with the Android SDK that is used to convert Java bytecode to Dalvik bytecode.

DX is being replaced by D8.

References

78 questions
1
vote
1 answer

How to force Delphi to use D8.bat instead of dx.bat to compile Java 1.8 bytecode into DEX bytecode

Today I faced a problem. My project needs to use some libraries (*.jar) that use Java 1.8 features. I see more and more libraries use now Java 1.8 features (like webRTC, exoplayer, etc.). In this way, we must do desugaring. Desugaring allows you to…
zeus
  • 12,173
  • 9
  • 63
  • 184
1
vote
1 answer

Are there a specification of an API or samples for the DX tool for Android!

I'd like to use DX Tool API for triying to generate ad-hoc a dexfile invoking this library. Are there any sample or any specification of this library? Thanks for all Greetings!
Sergio
  • 780
  • 1
  • 9
  • 28
1
vote
1 answer

dx.bat is not called in API version 23 while building in Android Studio / gradle

During build process of application, dx.bat in build tools\23.0.3 folder is not executed. compileSdkVersion 23 buildToolsVersion "23.0.3" dx.bat used to get executed in older API versions like 19. In that case, can you let me know how classes.dex…
1
vote
2 answers

Keep folders while converting jar to dex

I want to convert my jar to dex: dx --dex --output=file.dex file.jar. In file.jar exists folder cnf/ which contains configuration files needed for my classes. But there is no folder cnf/ in resulting dex-file. How to keep all files and folders in…
Michael Galuza
  • 386
  • 6
  • 16
1
vote
1 answer

How to convert multiple jars into a single .dex file

I have multiple jar files I would like to compile into a single dex file. To compile 1 jar into a dex, you can use the following command: dx --dex --output="/tmp/dx.dex" "/tmp/input.jar" Is there a way to compile multiple jars into a single dex…
April C.
  • 21
  • 1
1
vote
2 answers

Installation error: INSTALL_FAILED_DEXOPT

Hi I have very big problem my application size is around 10mb and i have 7mb of junit's (jar) files .Recently I updated googleplayservice with my application after adding that my apk is not installed into the device which has api level lesser…
Rakki s
  • 1,426
  • 1
  • 18
  • 42
1
vote
1 answer

Including classes with the same package name and name in an APK

When building an APK for Android, the DX tool fails in case you attempt to add the same library twice with an error such as this: UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.IllegalArgumentException: already added:…
lysergic-acid
  • 19,570
  • 21
  • 109
  • 218
1
vote
0 answers

Jumbo mode with android dx compiler on mac os x

i'm trying to use jumbo mode for android dx on mac osx in a large project (with Eclipse+ADT) using the flag "dex.force.jumbo=true" inside project.properties file. It works on Windows but not on various macs where I tried. Here's the…
Batti
  • 425
  • 4
  • 15
1
vote
1 answer

confuse with row major and column major matrix multiplication in hlsl

i realize that in d3dx math library or xnamath library, there matrix is saved row major in memory. in effect framework, when we set a matrix parameter by effect interface setvarible, it will transpose the target matrix. if i am not use effect…
boo
  • 493
  • 6
  • 17
1
vote
1 answer

Bad class file magic on dx.bat

I need to build my android application from command line(I'm compiling the code using Java7), but when I try to create the dex file I get the following error trouble processing: bad class file magic (cafebabe) or version (0033.0000) ...while parsing…
Hossein Shahdoost
  • 1,692
  • 18
  • 32
1
vote
1 answer

"rake" command using ruboto returns abort and permission denied

I've recently decided to venture into android app development with ruboto. I installed the Android SDK with all the necessary development tools along with jruby, javac, ant, and ruboto. However, when I call the "rake" (ruby make) command, I get the…
1
vote
1 answer

Dx processing external libraries takes forever

My Android application uses rather large number of non trivial external libraries. These libraries are all written in Java and simply added to the build path. Launching the application from within Eclipse takes a REALLY long time, roughly 5 minutes.…
Eric
  • 2,053
  • 2
  • 13
  • 6
1
vote
1 answer

Converting .java back to classes.dex

I've been playing around with reverse engineering and I am having trouble recompiling after making an edit. I first used apktool: apktool d input.apk out apktool b out I then used dex2jar to convert classes.dex to jar then used JD-GUI to extract…
Nick
  • 9,285
  • 33
  • 104
  • 147
0
votes
1 answer

porting javac and dx to android

Hi i'm planning on porting the javac compiler and dx converter to android..Is this going to be a trivial Task or are there any major Roadblocks? My idea is to create an app so that people can compile java source code in the android devices and maybe…
user1124403
0
votes
0 answers

What API do source commands use in SFDX CLI?

Using the SFDX mdapi commands the CLI deploys using metadata API for files in MDAPI format. I get that. Using SFDX source commands uses what API? I know it is source format and you can do deployments without package.xml etc, but behind the scene…
Strong Like Bull
  • 11,155
  • 36
  • 98
  • 169