Open anilkumar98 opened 4 years ago
Hi @anilkumar98 . Thanks for the report, and apologies that you're seeing an issue. I'll need a bit more information to know for certain.
Can you give a bit more context?
For example, what SDK version are you seeing this on? Are you upgrading from an older SDK, or is this the initial install?
Also are you seeing this crash in real customer devices, or only in a test environment?
Thanks!
Thanks! it was so quick response..
com.apptentive:apptentive-android:5.4.5 Android SDK:28 Its not SDK upgrade Its in our pre prod phase currently
Thanks for the context. Are you using AndroidX 1.1 or more recent?
Also, are you able to able to consistently reproduce the crash?
I ask because, if you're using a recent version of AndroidX, we have seen a crash that happens every time an Apptentive Dialog is dismissed. This particular crash is very easy to repro. I can't quite tell from the stack trace you showed if that's this issue, but wanted to be sure. If it is this issue, it was fixed in SDK version 5.5.0.
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.vectordrawable:vectordrawable:1.1.0'
implementation 'androidx.media:media:1.1.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta3'
implementation 'androidx.browser:browser:1.0.0'
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.lifecycle:lifecycle-extensions:2.1.0' implementation "androidx.exifinterface:exifinterface:1.1.0" implementation 'androidx.multidex:multidex:2.0.1'
Above libs are most updated one.
Also SDK version 5.5.0 where can I see release notes to know if its good to upgrade.
Hi @anilkumar98 !
Apologies for the delay. You can find version 5.5.0 here: https://github.com/apptentive/apptentive-android/releases/tag/v5.5.0
It does look like this crash is fixed in the latest version. The specific issue is with older SDKs and when you use androidx.appcompat:appcompat:1.1.0
Can you try building with 5.5.0 and let me know if you're continuing to see any issues?
Hi apptentive Team,
Do we have fix for below crash stack trace. com.apptentive.android.sdk.ApptentiveViewActivity}: java.lang.IllegalStateException: Already attached at android.app.ActivityThread.performLaunchActivity + 2927(ActivityThread.java:2927) at android.app.ActivityThread.handleLaunchActivity + 2988(ActivityThread.java:2988) at android.app.ActivityThread.handleRelaunchActivity + 4915(ActivityThread.java:4915) at android.app.ActivityThread.-wrap21(ActivityThread.java) at android.app.ActivityThread$H.handleMessage + 1637(ActivityThread.java:1637) at android.os.Handler.dispatchMessage + 102(Handler.java:102) at android.os.Looper.loop + 154(Looper.java:154) at android.app.ActivityThread.main + 6682(ActivityThread.java:6682) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run + 1520(ZygoteInit.java:1520) at com.android.internal.os.ZygoteInit.main + 1410(ZygoteInit.java:1410)
Thanks, Anil