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.** { *;}
问题解决