Build Signed APK failed - Can't find common super class of [android/content/Context]

假如想象 提交于 2019-12-31 02:54:10

问题


This is Android Project. Using Normal Build was successfull, but using signed Key i got this error :

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)

Any Idea ? Thanks in advance...


回答1:


I think Proguard causes this problem.

Add this line to your Proguard file.

-keep class com.onesignal.** { *; }

And you should read this issue. It may help you. https://github.com/OneSignal/OneSignal-Android-SDK/issues/154



来源:https://stackoverflow.com/questions/43571266/build-signed-apk-failed-cant-find-common-super-class-of-android-content-cont

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!