Error: The output jar is empty. Did you specify the proper '-keep' options?
2014-07-09 17:30
567 查看
这是因为你混淆的代码没有一个入口,也就是说,这个程序或者jar包被全部混淆了,外部没有任何一个地方可以正常调用到它,换句话说就是“你混淆出来的东西没法用”。假如你混淆的是apk,参考 http://stackoverflow.com/questions/14869315/the-output-jar-is-empty-did-you-specify-the-proper-keep-options 假如你混淆的是jar包: 依赖其它的库使用类似下述语句 -libraryjars D:/developApp/androidsource/xxx.jar 混淆的java代码里有标签,加上 -keepattributes *Annotation* 最后就是把对外接口给keep住
相关文章推荐
- 解决 java.io.IOException: The output jar is empty. Did you specify the proper '-keep' options?
- java.io.IOException: The output jar is empty. Did you specify the proper '-keep' options?
- Ignoring unused library classes...java.io.IOException: You have to specify '-keep' options for the s
- java.io.IOException: You have to specify '-keep' options for the shrinking step.
- 解决mysql 添加插件时提示 ERROR 1289 (HY000): The ‘plugin’ feature is disabled; you need MySQL built with ‘HAVE_DLOPEN&#
- Did you know… You can keep recently-used files from falling off the File Tab Channel?
- Error: The computer you chose is not a valid license server
- genymotion The connection to adb is down, and a severe error has occured.You must restart adb and Ec
- git 报错 gitThere is no tracking information for the current branch. Please specify which branch you w
- I read that if you specify too large a heap (using -Xmx) then it will slow down the application, is
- Install SVN Error:The Feature You Are Tring to Use is on a Network Resource That is Unvaliable
- ERRO:cannot launch the modelsim-altera software because you did not specify the path...
- The connection to adb is down, and a severe error has occured. You must restart adb and Eclipse.解决办法
- Error:Initialize scatter file failed.Please check the scatter file name you load is legal
- The connection to adb is down, and a severe error has occured.You must restart adb and Eclipse.
- A jar is not recognized error appears when installing the Performance Overview plug-in
- The connection to adb is down, and a severe error has occured.You must restart adb and Eclipse.Please ensure that adb is correctly located
- The system cannot log you on due to the following error:access is denied
- emulator: ERROR: You did not provide the name of an Android Virtual Device