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
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…
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
  • 17,990
  • 18
  • 96
  • 194
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
  • 415
  • 4
  • 15
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,573
  • 17
  • 29
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
  • 1,773
  • 2
  • 11
  • 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
  • 8,824
  • 32
  • 98
  • 143
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
3 answers

"Conversion to Dalvik format failed" error not going away

"Conversion to Dalvik format failed: unable to execute dex: wrapper was not properly loaded first" I am getting this error with my project in eclipse, and I searched for it and all answers say it's a problem with .jar file conflicts, and to clean…
MarioAran
  • 41
  • 1
  • 10
0
votes
0 answers

"ClassNotFound" Exception while dynamically loading dex file in Android

I am trying to learn dynamically loading classes (.dex/.jar) in Android. Assembled the basic ideas from following tutorials and SO questions Tutorial, this and this but failing to fulfill my purpose of dynamically loading class files and constantly…
v1h5
  • 1,217
  • 3
  • 14
  • 30
0
votes
0 answers

App building process works for Android 6.0.1, but not for 2.3.6

I want my Android apps to work also on old Android versions. This hello world app, which I have written, works on my Android 6.0.1 device, but is not installed to my Android 2.3.6 device (error message: Application not installed). I find the…
Kolodez
  • 213
  • 1
  • 6
0
votes
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
  • 26
  • 7
0
votes
0 answers

why d8.bat on org.jetbrains.kotlin:kotlin-stdlib-common:1.3.72 return me an empty file?

I downlad the kotlin-stdlib-common.jar from https://search.maven.org/search?q=g:org.jetbrains.kotlin%20AND%20a:kotlin-stdlib-common and I run: "C:\SDKs\android-sdk-windows\build-tools\29.0.3\d8.bat" ^ --no-desugaring ^ --release ^ --lib…
zeus
  • 9,795
  • 5
  • 45
  • 112
0
votes
0 answers

Rebuild android.jar with appcompat library on device in Termux

This project https://github.com/BuildAPKs/buildAPKs builds APKs on device in Termux in Android. Frequent errors are related to appcompat when compiling without artifacts, i.e., Error retrieving parent for item: No resource found that matches the…
S D Rausty
  • 11
  • 5