# Navigate to build tools directory cd %LOCALAPPDATA%\Android\Sdk\build-tools\31.0.0

This advanced example demonstrates a process known as "Dexing d8 with d8," where the D8 tool is used to compile itself for a specific target platform.

D8 is the next-generation DEX compiler from Google, designed to replace the older DX compiler. It is a command-line tool that converts Java bytecode ( .class files) into the Dalvik Executable ( .dex ) bytecode that runs on Android devices.

You can find the executable (which functions as the jar) in your Android SDK path: $ANDROID_HOME/build-tools/<version>/d8

java -jar d8.jar --lib android.jar --output output_dir/ input_classes/