[英]How to obfuscate android .apk file using proguard using android studio?
I want to obfuscate my android apk file using proguard or any other method. 我想使用proguard或任何其他方法混淆我的android apk文件。 tried many ways including :-
尝试了很多方法,包括: -
After doing so facing further issue of some proguard errors giving warnings for external library class files. 在这样做之后,面临一些proguard错误的进一步问题,给出外部库类文件的警告。
Error : -Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'. 错误 :-Error:任务':app:transformClassesAndResourcesWithProguardForRelease'的执行失败。
java.io.IOException: Please correct the above warnings first.
java.io.IOException:请先纠正上面的警告。
Even I am unable to generate signed apk. 即使我无法生成签名的apk。
It is strongly advised to investigate the warnings that ProGuard prints to the console and try to fix them. 强烈建议调查ProGuard打印到控制台并尝试修复它们的警告。 For this you will have to either include additional libraries or add
-dontwarn
directives to your proguard-project.txt
file. 为此,您必须在
proguard-project.txt
文件中包含其他库或添加-dontwarn
指令。
As a last resort, you can also use -ignorewarnings
which will instruct ProGuard to continue regardless of any remaining warning. 作为最后的手段,您还可以使用
-ignorewarnings
来指示ProGuard继续,无论任何剩余警告。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.