2021年3月27日星期六

Crash Report: java.lang.RuntimeException: Unable to destroy activity; java.lang.IllegalArgumentException: Parameter specified as non-null is null

I am getting my app crashed after closing the app. There are many article regarding this question, but I could not find a solution for my program.

java.lang.RuntimeException: Unable to destroy activity {com.example.aa_store/com.example.aa_store.MainActivity}: java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter activity      at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4450)      at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:4468)      at android.app.ActivityThread.-wrap5(Unknown Source:0)      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1678)      at android.os.Handler.dispatchMessage(Handler.java:106)      at android.os.Looper.loop(Looper.java:176)      at android.app.ActivityThread.main(ActivityThread.java:6651)      at java.lang.reflect.Method.invoke(Native Method)      at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:824)  Caused by: java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter activity      at com.lyokone.location.FlutterLocationService.setActivity(Unknown Source:2)      at com.lyokone.location.LocationPlugin.deinitialize(LocationPlugin.java:121)      at com.lyokone.location.LocationPlugin.detachActivity(LocationPlugin.java:56)      at com.lyokone.location.LocationPlugin.onDetachedFromActivity(LocationPlugin.java:69)      at io.flutter.embedding.engine.FlutterEngineConnectionRegistry.detachFromActivity(FlutterEngineConnectionRegistry.java:389)      at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onDetach(FlutterActivityAndFragmentDelegate.java:560)      at io.flutter.embedding.android.FlutterActivity.release(FlutterActivity.java:587)      at io.flutter.embedding.android.FlutterActivity.onDestroy(FlutterActivity.java:608)      at android.app.Activity.performDestroy(Activity.java:7297)      at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1250)      at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4437)      ... 9 more  

App is working well. I am getting this error message after closing the app.

https://stackoverflow.com/questions/66838297/crash-report-java-lang-runtimeexception-unable-to-destroy-activity-java-lang March 28, 2021 at 12:03PM

没有评论:

发表评论