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
0
votes
1 answer

I have 3 dx-selects they need to be related to each other

When I select the first selectbox, the other selectbox should also show its subcategories, but I couldn't do that. It says it's done with onValueChanged but I can't do it. I'm not very good at javascript how can I do this? When I did it with the…
0
votes
0 answers

Does D8.bat and monitor.bat work with JDK 11 from adoptium?

I cannot make D8.bat, dx.bat or even monitor.bat working with the installation of jdk-11.0.16.101-hotspot from Eclipse Adoptium. But with jdk-8.0.282.8-hotspot from AdoptOpenJDK it's work fine. Does those tools work with jdk-11? I notice that in…
zeus
  • 12,173
  • 9
  • 63
  • 184
0
votes
0 answers

How to keep manifest file with d8 compile tool?

I build a jar for the Android platform with Gradle. When I use the dx command, it works well building a jar with manifest, but dx can't support Java 8 syntax. So I have to change compile tool to d8, it supports Java 8 syntax but it removes the…
DysaniazzZ
  • 825
  • 15
  • 29
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

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

how to easily convert code .java to .dex in android to directly execute via adb

I have just started learning android. I want to run .java code directly via adb. I found a simple media player code here. Using android studio. converted it into .class as mentioned here & linking android.jar by copying it into libs folder. Then…
jonny789
  • 323
  • 1
  • 8
  • 16
0
votes
0 answers

dx command error even when path is set

I want to use dx tool. So I use the following command in terminal dx --dex --output=classes.dex sample.jar and I got this error No such file or directory I know i should set environment variable "path" and add /build-tools/x.y.z/dx to it. But even…
JachobTailor
  • 107
  • 11
0
votes
1 answer

Where can I find an explanation of all the options in the dx tool

Where can I find an explanation of all the options in the dx tool if you type dx --help you only get an explanation for some of the options.
0
votes
1 answer

How can I use jar libraries in Android compiled with packages that Android doesn't have

I need to import a couple of jars that where compiled under the full implementation of java. I know that Android doesn't use all the packages that java has to offer. My question is: Is it possible to import them without creating errors? Is there a…
Mr Perkins
  • 105
  • 1
  • 1
  • 6
0
votes
1 answer

Byte-Buddy-Android for current Dx

I'm currently using byte-buddy, byte-buddy-android and Android's dx_1.7 library. The dx_1.7.jar is out of date (2012) and I wonder if someone has already built a new byte-buddy-android.jar that works with a current dx.jar (not dx_1.7.jar) provided…
Key
  • 139
  • 1
  • 9
0
votes
1 answer

--core-library error with build tools android (Eclipse)[solved with android studio]

I am trying to build an apk with xmlParserAPIs-2.6.2.jar using eclipse without Maven. But unfortunately it gives following error. trouble processing "javax/xml/parsers/DocumentBuilder.class": Ill-advised or mistaken usage of a core class (java.* or…
MohK
  • 1,873
  • 1
  • 18
  • 29
0
votes
1 answer

How to list the event of the etw DX provider?

I find a method that use wevtutil to get the publisher configuration information. For example i use commond "wevtutil gp Microsoft-Windows-DiagCpl /ge:true /gm:true /f:xml" . But when i use commond "wevtutil gp DX /ge:true /gm:true /f:xml", the…
yin kevin
  • 31
  • 3
0
votes
1 answer

Android DX Warnings Cause Crash

The android project I am working on in Eclipse uses maven to bring in JAR files. One of the jar files has native *.so files in it causing this error to pop up then a memory size issue crashing the IDE. [2014-03-26 08:42:23 - **] Dx warning:…
LEO
  • 2,572
  • 1
  • 26
  • 31
0
votes
1 answer

NoClassDefFoundError after adding jar to build path

I am working on an android project in eclipse. I am using some 3rd party jars which I have added to a folder called lib and I've added all the Jars to the build path. There are about 44 jars that i am using. I get a NoClassDefFoundError when I run…
Nick Chris
  • 281
  • 2
  • 7
  • 17
0
votes
1 answer

Library project Dx UNEXPECTED TOP-LEVEL EXCEPTION or ActivityNotFoundException

I have library project and regular android project which uses it. Library project: src folder package com.myproject MainActivity ChildActivity AndroidManifest.xml
user468311