jody abbot
jody abbot

Reputation: 303

make dex file from framework.jar

I receive dex format of framework.jar file so in command-line I type this command

"dx --dex -JXmx512m --no-strict "out.dex" "framework.jar" "

enter image description here

I should mention that when I use this command for another jar file I receive same error but when I use the command

"dx --dex --no-strict "out.dex" "test.jar" "

for another jar file(test.jar), out.dex file created, but this command doesn't work well for framework.jar and when I use this command I got this error

enter image description here

I want ask what is the problem?

Upvotes: 0

Views: 337

Answers (1)

Try adding the --output=out.dex option to the command.

You can find information about other supported options by typing :
dx --help

Also, if the jar file is large, you'll have to increase the heap size allocated to dx, in order to avoid the OutOfMemoryError. You can do this by passing the -JXmx option, or by editing the dx.bat/dx.sh file in the build tools directory of your android sdk.

Upvotes: 2

Related Questions