sumup / sumup-android-sdk

Sample App for the SumUp Android SDK
Other
100 stars 28 forks source link

Sumup Crashes when google play services location is upgraded to 21.0.1 #194

Open terrypearson opened 1 year ago

terrypearson commented 1 year ago

The Android Sumup SDK (com.sumup:merchant-sdk:4.0.0) causes a fatal crash when an app is using com.google.android.gms:play-services-location:21.0.1 (latest version).

If the app uses com.google.android.gms:play-services-location:20.0.0 instead, no crash occurs.

Stack trace is from Google Play Store:

Exception java.lang.IncompatibleClassChangeError: at com.sumup.base.common.location.GoogleLocationServicesManager.updateLatestLocation (SourceFile:1) at com.sumup.base.common.location.GoogleLocationServicesManager.getLatestLocation (SourceFile:2) at com.sumup.merchant.reader.network.rpcActions.rpcAction.addLocation (SourceFile:1) at com.sumup.merchant.reader.network.rpcActions.rpcAction.<init> (SourceFile:156) at com.sumup.merchant.reader.identitylib.network.rpcActions.rpcActionLogin.<init> (SourceFile:1) at com.sumup.merchant.reader.identitylib.network.rpcActions.rpcActionLoginWithAccessToken.<init> (SourceFile:1) at com.sumup.merchant.reader.identitylib.ui.activities.LoginActivity.logInWithAccessToken (SourceFile:1) at com.sumup.merchant.reader.identitylib.ui.activities.LoginActivity.handleLogIn (SourceFile:51) at com.sumup.merchant.reader.identitylib.ui.activities.LoginActivity.doAutoLogin (SourceFile:2) at com.sumup.merchant.reader.identitylib.ui.activities.LoginActivity.onCreate (SourceFile:120) at android.app.Activity.performCreate (Activity.java:8290) at android.app.Activity.performCreate (Activity.java:8270) at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1329) at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:4085) at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:4277) at android.app.servertransaction.LaunchActivityItem.execute (LaunchActivityItem.java:103) at android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:135) at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:95) at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2443) at android.os.Handler.dispatchMessage (Handler.java:106) 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 (Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:571) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1135)

superafroman commented 1 year ago

A little more info on this issue - Google Play Services released a breaking change in v21: https://developers.google.com/android/guides/releases#october_13_2022