NoSuchMethodError AuthorizationClient$Result.createTokenResult
I got the following error rarely in production:
java.lang.NoSuchMethodError: com.facebook.AuthorizationClient$Result.createTokenResult
at com.facebook.AuthorizationClient.startOrContinueAuth(AuthorizationClient.java)
at com.facebook.LoginActivity.onResume(LoginActivity.java)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1231)
at android.app.Activity.performResume(Activity.java:5520)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2866)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2905)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2263)
at android.app.ActivityThread.access$800(ActivityThread.java:148)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1209)
at android.os.Handler.dispatchMessage(Handler.java:122)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5105)
at java.lang.reflect.Method.invokeNative(Method.java)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(NativeStart.java)
I already configured Proguard correctly with :
# Facebook SDK
-keep class com.facebook.** { *; }
-keepattributes Signature
-dontwarn com.facebook.**
Facebook SDK: 3.14.1
I've got a couple of reports of this as well.
java.lang.NoSuchMethodError: com.facebook.AuthorizationClient$Result.createTokenResult
at com.facebook.AuthorizationClient.startOrContinueAuth(AuthorizationClient.java)
at com.facebook.LoginActivity.onResume(LoginActivity.java)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1230)
at android.app.Activity.performResume(Activity.java:5299)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2676)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2714)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2103)
at android.app.ActivityThread.access$600(ActivityThread.java:144)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1209)
at android.os.Handler.dispatchMessage(Handler.java:119)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4856)
at java.lang.reflect.Method.invokeNative(Method.java)
at java.lang.reflect.Method.invoke(Method.java:528)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(NativeStart.java)
The 2 devices which suffered the crash are both rooted. The devices' profiles are: 1- LG Nexus 5 - Android 4.4.2 2- Samsung Galaxy Nexus - Android 4.1.1
Same error with same devices here.
Same error being reported on Samsung Galaxy Nexus - Android 4.1.1
java.lang.NoSuchMethodError: com.facebook.AuthorizationClient$Result.createTokenResult at com.facebook.AuthorizationClient.startOrContinueAuth(AuthorizationClient.java) at com.facebook.LoginActivity.onResume(LoginActivity.java) at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1230) at android.app.Activity.performResume(Activity.java:5299) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2676) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2714) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2103) at android.app.ActivityThread.access$600(ActivityThread.java:144) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1209) at android.os.Handler.dispatchMessage(Handler.java:119) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4856) at java.lang.reflect.Method.invokeNative(Method.java) at java.lang.reflect.Method.invoke(Method.java:528) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) at dalvik.system.NativeStart.main(NativeStart.java)
Got it on LGE Nexus 5, android 4.4.2
Can you take a look at your APK file to see if you have the createTokenResult method on the AuthorizationClient.Result class?
Closing this issue, as there is no repro. If you get a repro, or get any other insight into what may be happening, please create a bug at https://developers.facebook.com/bugs