The application has stopped unexpectedly: How to Debug?

后端 未结 5 2385
春和景丽
春和景丽 2020-12-23 17:36

Please note, unlike many other questions having the subject title \"application has stopped unexpectedly\", I am not asking for troubleshooting a particular problem.

5条回答
  •  醉话见心
    2020-12-23 18:06

    Check whether your app has the needed permissions.I was also getting the same error and I checked the logcat debug log which showed this:

    04-15 13:38:25.387: E/AndroidRuntime(694): java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.CALL dat=tel:555-555-5555 cmp=com.android.phone/.OutgoingCallBroadcaster } from ProcessRecord{44068640 694:rahulserver.test/10055} (pid=694, uid=10055) requires android.permission.CALL_PHONE
    

    I then gave the needed permission in my android-manifest which worked for me.

提交回复
热议问题