+ # As of build tools 24 the dx tool is implemented using java 8, but
+ # as dx itself does not support java 8 (class file format 52)
+ # we go the .class -> jill -> jack route.
+ local DX_JACK=$TERMUX_PKG_TMPDIR/dx.jack
+ java -jar $TERMUX_JILL \
+ --output=$DX_JACK \
+ $ANDROID_HOME/build-tools/${TERMUX_PKG_VERSION}/lib/dx.jar
+ java -jar $TERMUX_JACK \
+ --output-dex $TERMUX_PKG_TMPDIR \
+ --import $DX_JACK
+