android dex hotfix

Steps: 1. Generate apk, and then find the app folder under the project folder -->build-->intermediate-->classes-release-->find the modified class file under the corresponding package name, and then copy it come out.

    2. Enter the class folder through cmd, and  generate the fixbug.jar file through the command jar cvf fixbug.jar cn/*

 3. Through the dx tool, command: dx--dex--outputpatch.jarfixbug.jar generates patch.jar from fuxbug.jar

    4. Put the patch.jar into the sd card and run the code to see the modified effect of the hot fix


Demo download:

http://download.csdn.net/download/qq_26467207/10033814

Guess you like

Origin blog.csdn.net/qq_26467207/article/details/78306442