How to use JarJar with Android to change package names of external jars?

让人想犯罪 __ 提交于 2019-12-22 04:42:39

问题


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?


回答1:


Try it by following these steps:

  1. firstly you copy own jar file on your project within a folder.
  2. Now you go to your project , right click on your project and click to bulid path- again choose configure build path ,
  3. Now you select libraries and select external jar file , after browse your jar folder, select those jar file.
  4. click finish


来源:https://stackoverflow.com/questions/13088255/how-to-use-jarjar-with-android-to-change-package-names-of-external-jars

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!