jar package compiled dex

1, will be merged into the same jar directory

2, write a file write the following google.xml

<!--?xml version="1.0" encoding="utf-8"?-->
<project basedir="E:\packagetools\packtool\finalsdk\google\jar" default="makeSuperJar" name="base">
    <target description="description" name="makeSuperJar">
        <jar destfile="base.jar"> 
		<zipfileset src="aaaaa.jar" />
		<zipfileset src="xxxx.jar" />
	</jar>
    </target>
</project>

3, execute the command ant -buildfile F: \ google \ google.xml

  ant tool  http://ant.apache.org/

  Self-install Baidu

4, the generated command base.jar converted classes.dex 

dx tools in android sdk build-tools in

dx --dex --output classes2.dex base.jar

 

Guess you like

Origin www.cnblogs.com/chancy/p/11243943.html
Recommended