[안드로이드 오류 보고서] RuntimeException: Unable to resume activity {com.test.MainActivity}: java.lang.IllegalArgumentException
생명주기 중 resume 주기에서 오류가 발생되었다. 오류가 발생한 운영체제는 안드로이드9가 설치된 삼성 갤럭시 J7 Pro와 LENOVO의 Yoga Smart Tab에서 발생하였다. 이 오류를 해결할 수 있는 방법이 있을까? 모든 폰에서 문제가 발생하는 것은 아님으로 특정 스마트폰의 문제일 가능성이 크다.
오류내용은 다음과 같다.
Fatal Exception: java.lang.RuntimeException: Unable to resume activity {com.test.MainActivity}
: java.lang.IllegalArgumentException
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4039)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4071)
at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:51)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:145)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:70)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1970)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7156)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:975)
Caused by java.lang.IllegalArgumentException
at android.os.Parcel.createException(Parcel.java:1970)
at android.os.Parcel.readException(Parcel.java:1934)
at android.os.Parcel.readException(Parcel.java:1884)
at android.app.IActivityManager$Stub$Proxy.isTopOfTask(IActivityManager.java:7832)
at android.app.Activity.isTopOfTask(Activity.java:6546)
at android.app.Activity.onResume(Activity.java:1399)
at androidx.fragment.app.FragmentActivity.onResume(FragmentActivity.java)
at ddolcatmaster.mypowermanagement.MainActivity.onResume(MainActivity.java)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1416)
at android.app.Activity.performResume(Activity.java:7612)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4031)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4071)
at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:51)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:145)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:70)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1970)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7156)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:975)
Caused by android.os.RemoteException: Remote stack trace:
at com.android.server.am.ActivityManagerService.isTopOfTask(ActivityManagerService.java:18419)
at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:2018)
at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:4185)
at android.os.Binder.execTransact(Binder.java:739)
버그바이~~