Signed apk crashes with facebook login

眉间皱痕 提交于 2019-12-11 07:20:17

问题


My Signed apk crashes first time on facebook login with this error:

AndroidRuntime: FATAL Exception: main
com.facebook.aq: com.facebook.c.f got an unexpected method signature: public abstract com.facebook.c.c com.facebook.c.c.a(java.lang.Class)

However, it works fine with 2nd attempt login. I am using Facebook-android-sdk-3.6.0. I've checked here too - Android Facebook application crashes when using a hash key other than the debug hash key, but didn't find any solution.
Do anyone faced the same issue, please help me in sorting out the above problem.


回答1:


I guess you're using proguard. Facebook SDK sources are open. No need to obfuscate them. We added this rule to our proguard.cfg file: -keep class com.facebook.** { *; }



来源:https://stackoverflow.com/questions/22068135/signed-apk-crashes-with-facebook-login

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