I used to create dex file with dx.bat like this :
"c:SDKsandroidbuild-tools32.0.0dx.bat" –dex
–output=C:DevMagicFoundationAlcinoeToolsAddRJavaToClassesDextmpclasses.dex
C:DevMagicFoundationAlcinoeToolsAddRJavaToClassesDextmpobj.zip
How to do the same with d8.bat?
2
Answers
Creating DEX file using d8 can be achieved using:
In your case, the following is an equivalent:
To anyone who is using
d8.bat
with OpenJDK-11, if you encounter the error when runningd8.bat
:You can edit
d8.bat
with a text editor, replacing the code-Djava.ext.dirs="%frameworkdir%"
in last line to-classpath "%frameworkdir%"
to fix the error.