in-app-payments-flutter-plugin: Exception: sqip.internal.event.LogEventsResponse not present
We started getting a hard crash/exception only on Android phones only when the user is trying add a new card and either backs out (by clicking the back arrow) or successfully adds a card and we call InAppPayments.completeCardEntry(…) to complete the entry and dismiss sqip screen (it crashes as sqip card screen is being dismissed).
This issue doesn’t happen on iOS - only Android. This issue also doesn’t happen when running in debug mode. It seems to occur 100% of the time when running a released build on a device. This issue got introduced with one of the recent upgrades of the various libraries we’re using, though doesn’t seem like going from sqip 1.2.2 to 1.2.3 is the root cause (tried both sqip versions as well as Flutter up to 1.9.1 hotfix 6).
Hopefully the following exception will be sufficient to track this, though let me know if you need any more info. Thank you!
EXCEPTION
Fatal Exception: java.lang.TypeNotPresentException:
Type sqip.internal.event.LogEventsResponse not present
at libcore.reflect.ParameterizedTypeImpl.getRawType(ParameterizedTypeImpl.java:67)
at libcore.reflect.ParameterizedTypeImpl.getResolvedType(ParameterizedTypeImpl.java:76)
at libcore.reflect.ListOfTypes.resolveTypes(ListOfTypes.java:70)
at libcore.reflect.ListOfTypes.getResolvedTypes(ListOfTypes.java:55)
at libcore.reflect.ParameterizedTypeImpl.getResolvedType(ParameterizedTypeImpl.java:75)
at libcore.reflect.Types.getType(Types.java:56)
at java.lang.reflect.Method.getGenericReturnType(Method.java:177)
at j.M.a(:2)
at j.L.a(:8)
at j.K.invoke(:5)
at java.lang.reflect.Proxy.invoke(Proxy.java:1006)
at $Proxy3.a()
at sqip.internal.b.c$a.a(:59)
at sqip.internal.b.c$a.a(:1)
at sqip.internal.b.d.run(:1)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:919)
ENVIRONMENT
[✓] Flutter (Channel unknown, v1.7.10, on Mac OS X 10.14.6 18G95, locale en-US) [✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3) [✓] Xcode - develop for iOS and macOS (Xcode 11.1) [✓] Android Studio (version 3.5) [✓] VS Code (version 1.39.2)
square_in_app_payments: ^1.2.3
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 2
- Comments: 16 (4 by maintainers)
We’ve gone through upgrading all the dependencies to be able to reference 1.3.0, which compiled fine after everything was upgraded.
There is no 1.3.1 version of the Flutter plug-in, so we assumed that you meant 1.3.1 of the SDK, which we explicitly referenced inside
build.gradle
and recompiled withflutter clean + flutter build appbundle
(as per https://github.com/square/in-app-payments-flutter-plugin/blob/master/doc/versioning.md).Sadly, we’re still experiencing the same hard crash when trying to add a card, when that card ui is being closed. (As before, this is an Android-only issue, and only when running on a device after releasing through the Play Store.)
Thanks for confirming, and sorry to hear that. I’ve informed our team that this is still an issue so they can resolve it.
Thank you for working on this. We’re trying to switch to the latest version of the plugin/SDK, but as I briefly mentioned last time, we are now running into build errors because of conflicting dependencies (Android build only, iOS compiles and works fine). This is the exact error we’re getting:
This is the exact listing of current app dependencies (which build fine on both platforms when using
square_in_app_payments
v1.2.3:Definitely, here you go: (we did upgrade most of the dependencies to the latest versions when (after which?) this square issue surfaced)