sumup / sumup-android-sdk

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

Crash on some device with latest SDK #164

Open claudiopizzillo opened 2 years ago

claudiopizzillo commented 2 years ago

Fatal Exception: java.lang.RuntimeException Unable to start activity ComponentInfo{it.kefaonline.scontrinoeasy/com.sumup.merchant.reader.identitylib.ui.activities.LoginActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.sumup.merchant.reader.ReaderModuleCoreState.inject(java.lang.Object)' on a null object reference

Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'void com.sumup.merchant.reader.ReaderModuleCoreState.inject(java.lang.Object)' on a null object reference at com.sumup.merchant.reader.identitylib.ui.activities.LoginActivity.onCreate(SourceFile:247) at android.app.Activity.performCreate(Activity.java:7009) at android.app.Activity.performCreate(Activity.java:7000) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2731) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856) at android.app.ActivityThread.-wrap11() at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6494) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)

milenpav commented 2 years ago

did you call SumUpState.init(this); before?

claudiopizzillo commented 2 years ago

Yes. I think this are rooted devices. Can be a problem?

rivella50 commented 1 year ago

@claudiopizzillo Did you ever find a solution here? I have the exact same crash on certain Android devices.

claudiopizzillo commented 1 year ago

I abandoned sumup due the unusable sdk 4.0.x for duplicate dependecies on build not fixed.

vigneshsankar07 commented 11 months ago

Copy the activity & services declaration from the sumup manifest & paste it into your project manifest file.

That will be worked on success. (y).