0

I've upgraded facebook SDK from 3.0 to 3.5. Testing on my devices was fine but I got these crash reports:

java.lang.IllegalStateException: OrcaSharedPreferences used before initialized
1at android.os.Parcel.readException(Parcel.java:1433)
2at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:188)
3at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:140)
4at android.content.ContentProviderProxy.query(ContentProviderNative.java:366)
5at android.content.ContentResolver.query(ContentResolver.java:370)
6at android.content.ContentResolver.query(ContentResolver.java:313)
7at com.facebook.Settings.getAttributionId(SourceFile:418)
8at com.facebook.AppEventsLogger.getSessionEventsState(SourceFile:684)
9at com.facebook.AppEventsLogger.logEvent(SourceFile:645)
10at com.facebook.AppEventsLogger.logEvent(SourceFile:641)
11at com.facebook.AppEventsLogger.logSdkEvent(SourceFile:537)
12at com.facebook.Session.logAuthorizationStart(SourceFile:1110)
13at com.facebook.Session.authorize(SourceFile:915)
14at com.facebook.Session.open(SourceFile:995)
15at com.facebook.Session.openForRead(SourceFile:388)
16at com.facebook.Session.openActiveSession(SourceFile:891)
17at com.facebook.Session.openActiveSession(SourceFile:830)

This happens when a user tries to log in to the app using facebook.

I read in: java.lang.IllegalStateException: Orca SharedPreferences used before initialized That it might be a case where the user doesn't have facebook app installed on his phone, but I also tested this scenario on my phone and it just opens facebook web view for logging in as it should.

It sucks to upgrade an SDK to find new crashes on code that worked just fine. What can be the cause?

Thanks!

4

1 回答 1

0

We got this as well by force stopping the Facebook app before launching our app (also on FB SDK 3.5)

于 2013-11-13T17:00:05.963 回答