Important Note: Minimum Android API level for this method is 14.
Copy all libraries (classes) that you want include to *.dex to some folder, name it as you want, place it in some folder.
Important note: %ANDROID_SDK_PATH%\build-tools\%VERSION% must be added to system path variable in other case please use full path to dx/dx.bat file.
For Windows run following commands in cmd/Cygwin:
For OS X run following commands in console:
This will generate classes.dex in the same folder.
Open Plugin and export all assets to your project.
Copy your generated classes.dex to android assets folder in your project (means: “ %your_project%/assets/plugins/android\assets”), create this folder if it is missing.
Find the script that loads first of all, or create new and assign it to splash_screen/first_scene.
Add following line to your Awake or Start method:
Thats all, now you can use your code as usual.