How do I prevent exception catching in Android?

前端 未结 4 585
北荒
北荒 2021-01-22 17:50

I\'m trying to develop an application for Android, but I\'m having difficulties tracing the source and cause of each exception I get in the process. My code runs in an Activity,

4条回答
  •  悲&欢浪女
    2021-01-22 18:31

    The first line in the Stack trace shows you where its blowing up. In your case:

    Thread [<1> main] (Suspended (breakpoint at line 72 in GameView))
    GameView.showMenu() line: 72
    GameView.init() line: 59
    GameView.(Context, AttributeSet) line: 51
    

提交回复
热议问题