360droid plugin 插件generate signed APK时can't find superclass or interface android.util.Singleton

Warning:com.morgoo.droidplugin.hook.proxy.IActivityManagerHook$1: can't find superclass or interface android.util.Singleton
Warning:com.morgoo.droidplugin.hook.proxy.IActivityManagerHook$1: can't find referenced class android.util.Singleton
Warning:there were 4 unresolved references to classes or interfaces.
Warning:Exception while processing task java.io.IOException: Please correct the above warnings first.
Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'.
> java.io.IOException: Please correct the above warnings first.

打包apk时,build apk没有问题,但是选择generate signed APK则报以上错,看了Android Studio实现代码混淆这篇文章之后,在

proguard-rules.pro 中加入
-dontwarn com.morgoo.droidplugin.hook.proxy.**
-keep class com.morgoo.droidplugin.hook.proxy.** { *;}

问题解决

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章