AppsFlyerSDK / appsflyer-android-app

Other
33 stars 110 forks source link

PlatformException at com.appsflyer.internal.AFa1aSDK.start #19

Closed dmitry-fbm closed 1 year ago

dmitry-fbm commented 2 years ago

Cannot reproduce this locally but getting massive amount of errors from production apps since last release. There was no relevant code changes, the only difference I can think of is upgrade to Flutter 3.3.8.

PlatformException(error, Attempt to invoke virtual method 'android.content.Context android.content.Context.getApplicationContext()' on a null object reference, null, java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.content.Context.getApplicationContext()' on a null object reference
    at com.appsflyer.internal.AFa1aSDK.start(Unknown Source:124)
    at com.appsflyer.internal.AFa1aSDK.start(Unknown Source:19)
    at com.appsflyer.internal.AFa1aSDK.start(Unknown Source:11)
    at com.appsflyer.appsflyersdk.AppsflyerSdkPlugin.initSdk(Unknown Source:130)
    at com.appsflyer.appsflyersdk.AppsflyerSdkPlugin.onMethodCall(Unknown Source:536)
    at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(Unknown Source:17)
    at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(Unknown Source:18)
    at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0(Unknown Source:20)
    at io.flutter.embedding.engine.dart.DartMessenger.a(Unknown Source:0)
    at io.flutter.embedding.engine.dart.a.run(Unknown Source:12)
    at android.os.Handler.handleCallback(Handler.java:938)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loopOnce(Looper.java:226)
    at android.os.Looper.loop(Looper.java:313)
    at android.app.ActivityThread.main(ActivityThread.java:8751)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135) )
dmitry-fbm commented 2 years ago

Sorry, probably posted into wrong branch - had to be appsflyer-flutter-plugin.

github-actions[bot] commented 2 years ago

👋 Hi @dmitry-fbm and Thank you for reaching out to us. In order for us to provide optimal support, please submit a ticket to our support team at support@appsflyer.com. When submitting the ticket, please specify:

dmitry-fbm commented 1 year ago

This can be closed, doesn't happen in newer versions anymore.