编程语言
首页 > 编程语言> > java-构建签名APK失败-找不到[android / content / Context]的通用超类

java-构建签名APK失败-找不到[android / content / Context]的通用超类

作者:互联网

这是Android项目.使用Normal Build成功,但是使用签名的Key我得到了这个错误:

Execution failed for task ':transformClassesAndResourcesWithProguardForFlavorRelease'.
> java.io.IOException: java.lang.IllegalArgumentException: Can't find common super class of [android/content/Context] (with 2 known super classes) and [com/onesignal/ADMMessageHandler] (with 1 known super classes)

任何想法 ?
提前致谢…

解决方法:

我认为Proguard会导致此问题.

将此行添加到您的Proguard文件中.

-保持类com.onesignal.** {*; }

您应该阅读此问题.
它可能会帮助您.
https://github.com/OneSignal/OneSignal-Android-SDK/issues/154

标签:onesignal,android,java,android-context,proguard
来源: https://codeday.me/bug/20191011/1891929.html