App getting stuck with E/com.facebook.internal.AttributionIdentifiers [duplicate]

This question already has an answer here:


How to solve app launch - app is stuck on white screen

6 answers




App was running fine till 1 hour back. Suddenly it started getting stuck at the opening and shows 1 line error message in logcat

08-31 15:57:54.924 31700-31700/? E/com.facebook.internal.AttributionIdentifiers: getAttributionIdentifiers should not be called from the main thread


That's the only log being shown. There were no changes happened on app

this one worked for me

com.facebook.android:facebook-android-sdk:4.35.0


If it does not help, open android/build.gradle.
Add next lines

allprojects {
repositories {
// ...

configurations.all {
resolutionStrategy {
force 'com.facebook.android:facebook-android-sdk:4.34.0'
}
}
}


For cordova you can do:

$ cordova plugin rm cordova-plugin-facebook4
$ cordova plugin add cordova-plugin-facebook4 --save --variable APP_ID="123456789" --variable APP_NAME="myApplication" --variable ANDROID_SDK_VERSION="4.34.0"


--> https://github.com/jeduan/cordova-plugin-facebook4/blob/master/docs/android/README.md#in-case-of-conflict

I tried each and every option. This issue was strange, showing black screen and nothing happening. Got this resolved by replacing the bundled facebook dependency
implementation 'com.facebook.android:facebook-android-sdk:[4,5]' with
implementation 'com.facebook.android:facebook-android-sdk:4.35.0'.
Finally clean, build and run.

Comments

Popular posts from this blog

Meaning of `{}` for return expression

Get current scroll position of ScrollView in React Native

flutter websocket connection issue