如何使用JarJar与Android改变外部罐的包名?(How to use JarJar with

2019-08-01 23:35发布

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?

Answer 1:

按照以下步骤试试:

  1. 首先你对你的项目复制一个文件夹中自己的jar文件。
  2. 现在你去你的项目,右键单击您的项目并点击bulid路径 - 再次选择配置构建路径,
  3. 现在,您选择库,选择外部jar文件,浏览你的罐子文件夹后,选择那些jar文件。
  4. 点击完成


文章来源: How to use JarJar with Android to change package names of external jars?