facebook-android-sdk
facebook-android-sdk copied to clipboard
FacebookSDK publishInstallAsync Fails (ANR: applicationContext null)
Checklist before submitting a bug report
- [X] I've updated to the latest released version of the SDK
- [X] I've searched for existing Github issues
- [X] I've looked for existing answers on Stack Overflow, the Facebook Developer Community Forum and the Facebook Developers Group
- [X] I've read the Code of Conduct
- [X] This issue is not security related and can safely be disclosed publicly on GitHub
Java version
1.8
Android version
API 23
Android SDK version
6.0.1
Installation platform & version
Gradle
Package
Core & AppEvents
Goals
Fix ANR Issue, applicationContext should not be null.
Expected results
No ANR, non-null applicationContext.
Actual results
Fatal Exception: java.lang.NullPointerException applicationContext must not be null
com.facebook.FacebookSdk.publishInstallAsync$lambda-15 (FacebookSdk.kt:636)
Steps to reproduce
Actually, we did not update Facebook SDK version yet(We are using v13.1.0)
- ApplicationId and ClientToken is inside our AndroidManifest.xml
- AutoLogAppEventsEnabled, AutoInitEnabled, AdvertiserIDCollectionEnabled is set to true inside our AndroidManifest.xml
Code samples & details
// INSERT YOUR CODE HERE
I got the same problem that the application can not report the install event Is anybody can help me fix this problem ? so thanks who answer me。