mParticle / mparticle-android-sdk

mParticle SDK for Android apps
http://www.mparticle.com
Other
59 stars 62 forks source link

MParticle Networking Crash #86

Open hussein-yassine opened 2 years ago

hussein-yassine commented 2 years ago

I have MParticle integrated in an application, but I keep getting a crash for a specific user on MParticle.Networking c.java line 2 com.mparticle.networking.c.a

The crash is so weird, and I can't any solution

The stacktrace of the crash is:

Fatal Exception: java.lang.NoSuchMethodError
No virtual method (I)V in class Ljava/net/HttpURLConnection; or its super classes (declaration of 'java.net.HttpURLConnection' appears in /system/framework/core-oj.jar)
com.mparticle.networking.c.a (c.java:2)
com.mparticle.internal.r.a (r.java:13)
com.mparticle.internal.z.a (z.java:10)
com.mparticle.internal.d.handleMessage (d.java:13)
android.os.Handler.dispatchMessage (Handler.java:106)
android.os.Looper.loop (Looper.java:164)
android.os.HandlerThread.run (HandlerThread.java:65)

The Device information of the User having the crash are: Device Brand:samsung Model:Galaxy J7 Prime Orientation: Portrait RAM free: 697.71 MB Disk free: 716.48 MB Operating System Version:Android 8.1.0 Orientation: Portrait Rooted:No

willpassidomo commented 2 years ago

Hey @hussein-yassine 👋 sorry for the delay, we're all filtering back in from holiday break.

Yea, this is really strange. My first thought was a proguard issue but I don't think that's the case if we're only talking about 1 user. If you don't mind, I have a few follow-up questions that might help us get to the bottom of this

1) have you been able to recreate this in an emulator or physical device? 2) which version of the MParticle SDK are you using? 3) what version of Java are you using to compile your apk?

hussein-yassine commented 2 years ago

Hello @willpassidomo ,

  1. I wasn't able to recreate it on either emulator or physical device.
  2. I am using Java 8
  3. Here are the dependencies used:
//MParticle
    implementation 'com.mparticle:android-googleanalyticsfirebase-kit:5.15.3'
    implementation 'com.mparticle:android-core:5.15.3'
    implementation 'com.mparticle:android-branch-kit:5.15.3'
    implementation 'com.google.android.gms:play-services-ads-identifier:17.0.1'
    implementation 'com.android.installreferrer:installreferrer:2.2'
    implementation 'androidx.browser:browser:1.3.0'
einsteinx2 commented 2 years ago

Tracking internally via: https://go.mparticle.com/work/SQDSDKS-4222