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
2
votes
0 answers

Where to find source code for android `dx` tool, version 1.16?

googling "dx source code" gives this but it's version 1.7. By going up the path, I can find later versions of the entire platform (it seems), but not clear to me which one contains which versions of dx. I could trial-and-error to find it, but…
hyperpallium
  • 571
  • 5
  • 18
2
votes
0 answers

dx.jar was not loaded from the SDK folder

I have an old project, which was made in Eclipse Luna. Now when I open it in this version of Eclipse or in Eclipse Photon, then such an error occurs "Unable to build: the file dx.jar was not loaded from the SDK folder!". This error occurs when the…
Ivan Abakumov
  • 128
  • 1
  • 13
2
votes
3 answers

What's the file path of d8.jar used by Android Studio?

I know that Android Studio switch to D8 dexer by default. But I wonder what's the file path of d8.jar ? I can't found d8.jar in SDK like dx.jar. A typical dx.jar located in…
林果皞
  • 7,539
  • 3
  • 55
  • 70
2
votes
0 answers

How to use aapt and javac with Android Support Libraries?

Can anyone help me building Android Applications using tools(aapt, aidl, javac, dx, jarsigner) with Android Support Library(v4, v7 etc). Without ant or gradle. Thanks.
Ram Ashish Pal
  • 183
  • 2
  • 9
2
votes
1 answer

No dx in android SDK?

I just downloaded android SDK for linux_x86. I cannot find dx though. Document says it should be on /tools/ . is dx not included any more from some point?
slee
  • 21
  • 1
2
votes
1 answer

I got a java.lang.NoClassDefFoundError:

even though the class path had the jars I was using, Then I added the jars to dx tool and it gave me java.lang.RuntimeException: Unable to start activity xyz java.lang.RuntimeException: Stub! You are bundling a stubbed jar in the apk! Please move it…
anuj
  • 1,010
  • 2
  • 11
  • 26
2
votes
2 answers

Android Studio: dx.bat failed

I am using Android Studio for building an application, in which I am using Facebook-SDK and Actionbar Sherlock as a dependencies. Each project library contains android-support-v4.jar. When I am trying with any one of the project library it is…
vinay kumar
  • 1,451
  • 13
  • 33
2
votes
3 answers

Android javac and dx - trouble processing, class name and path do not match

I'm using SpartacusRex's Terminal IDE and another app, DroidEdit, to build and run java applications on Android. A simle one-file Hello World builds and runs flawlessly, however when i introduce packages i cannot properly dex the class files into a…
Zyyk Savvins
  • 483
  • 4
  • 8
  • 14
2
votes
2 answers

Android dx usage

I have a jar file created out of an android application, because I marked it as "Is library" in eclipse at creation time. Now the DexClassLoader is not able to load this file because it doesn't have an entry marked classes.dex. This looks like a…
foobarometer
  • 751
  • 1
  • 9
  • 20
1
vote
2 answers

dx fails with RoboGuice

I'm trying to package an Android app which uses RoboGuice. The .class files compile fine, but when building the Android package, dx fails with a "No expanded opcode" message. Running dx --dex --debug --verbose target/android-classes…
1
vote
3 answers

How can resolve a Conversion to Dalvik format failed with error 1?

I am working on inbuild email application in this application. I am getting error logs in building time. How can I resolve this issue? [2012-01-02 10:53:07 - AndroidMail] Dx UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dx.util.ExceptionWithContext:…
Narasimha
  • 3,802
  • 11
  • 55
  • 83
1
vote
2 answers

How to create a dex with D8.bat

I used to create dex file with dx.bat like this : "c:\SDKs\android\build-tools\32.0.0\dx.bat"…
zeus
  • 12,173
  • 9
  • 63
  • 184
1
vote
0 answers

"ClassNotFound" Exception while dynamically loading .dex file in Android

I am trying to learn dynamically loading classes (.dex/.jar) in Android. I assembled the basic ideas from tutorials and Stack Overflow questions (tutorial, this, and this), but I am failing to fulfill my purpose of dynamically loading class files…
node_analyser
  • 1,502
  • 3
  • 17
  • 34
1
vote
1 answer

How to merge two dex files from command line

From last few days I was getting in depth How actually android studio works behind the hood. I explored many tools like aapt, dx, dalvikvm and many others. Now I have a very simple problem. I have a jar file (called abc.jar for example) which is…
SickBoy
  • 56
  • 10
1
vote
0 answers

dx.jar "Ignoring InnerClasses attribute for an anonymous inner class"

I am trying to use the dx.Jar tool of andorid to compile the wechat-SDKandroid-with-mta-5.1.6.Jar into dex file and put it into my project. But I encountered the following warning: warning: Ignoring InnerClasses attribute for an anonymous inner…
Kisence
  • 11
  • 2