Dynamic DEX code loading over the network
Shows an example of dex dynamic class loading. Two dex files are downloaded from a server, loaded into the VM and classes from the dex files executed.
Explanations in the blog post: http://gilvegliach.it/?id=12
Building and running
local.propertiesin the project root with
sdk.dirset (just import the project in Android Studio)
- Set the path for the
dxcommand in the variable
dexs/build.gradle, i.e. modify the line:
def dxCommand = '<SDK_DIR>/build-tools/current/dx'
Install app and run server with
./gradlew installDebug bootRun
Launch app on the device and have fun :)