AppLovin / AppLovin-MAX-SDK-Android

Other
233 stars 104 forks source link

NullPointerException Crash when implementing Amazon SDK on emulator #595

Closed tskiller1 closed 1 week ago

tskiller1 commented 11 months ago

MAX SDK Version

11.11.3

Device/Platform Info

Android 12, Pixel 4

Current Behavior

When I init Amazon SDK and run it on Emulator, Amazon SDK is not initialized and it crashes. But if run it on debug and set a breakpoint before init Amazon SDK then continue, it will run well. Besides, if run on real devices, it is okay and the status of Amazon SDK is initialized

java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference at com.applovin.impl.mediation.e.a(SourceFile:130) at com.applovin.impl.mediation.e.a(SourceFile:118) at com.applovin.impl.mediation.MediationServiceImpl.collectSignal(SourceFile:331) at com.applovin.impl.mediation.c.b$1.run(SourceFile:222) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:223) at android.app.ActivityThread.main(ActivityThread.java:7656) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)

Expected Behavior

No response

How to Reproduce

init amazon SDK before init Applovin SDK and run it on the emulator of Android Studio

Additional Info

No response

alvarshahanji commented 11 months ago

@tskiller1 what is the Amazon SDK/adapter version you are using?

tskiller1 commented 11 months ago

@alvarshahanji I'm using this version 'com.applovin.mediation:amazon-tam-adapter:9.8.6.0'

alvarshahanji commented 11 months ago

Thank you! Are you using the APS SDK 9.8.6 as well(com.amazon.android:aps-sdk)?

tskiller1 commented 11 months ago

@alvarshahanji yes, sure ('com.amazon.android:aps-sdk:9.8.6')

alvarshahanji commented 11 months ago

Could you check if the issue is reproducible on our demo app, could you share the repro steps?

github-actions[bot] commented 2 weeks ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 1 week ago

This issue was closed because it has been inactive for 5 days since being marked as stale.