I can't seem to find any clear instructions on how to use JarJar with an Android project.
I've got a scenario where my application project relies on two separate libraries, which both happen to use the same external .jar files. If I try to compile the application I get "Conversion to Dalvik format failed with error 1".
Can someone show me how to user JarJar on Android, using the build.xml file, in order to change the package name of a thirdparty .jar folder?
Satyam
Try it by following these steps:
- firstly you copy own jar file on your project within a folder.
- Now you go to your project , right click on your project and click to bulid path- again choose configure build path ,
- Now you select libraries and select external jar file , after browse your jar folder, select those jar file.
- click finish
来源:https://stackoverflow.com/questions/13088255/how-to-use-jarjar-with-android-to-change-package-names-of-external-jars