Skip to content

liratanak/custom-load-dex-file

Repository files navigation

#CustomLoadDexFile

It works on a pure Java lib. It do NOT guarantee that it will work in all situation

This project is a sample Android project to load compiled dex file.

Instead of dividing code in project, in my situation is code from third party Java library.

#Example

  • Supposed https://github.com/liratanak/hello-gradle as the third party library
  • hello-gradle.jar should be found in folder build/libs
  • Compile hello-gradle.jar to hello.dex via this command /path/to/sdk/build-tools/20.0.0/dx --dex --output="/path/to/CustomLoadDexFile/assets/hello.dex" "/path/to/hello-gradle/build/libs/hello-gradle.jar"
  • The dex file should be in assets folder because the sample code is using that folder [Remember: Dex file could also be loaded from external resource such as SD card or even from network stream]

#Reference

About

Android load custom dex file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages