android force close: ClassNotFoundException for Activity class

前端 未结 11 1330
情歌与酒
情歌与酒 2020-12-29 08:04

When I start my (soon-to-be) android game (from eclipse) it opens, but immediately force-closes.

Logcat says:

07-09 17:12:35.709: ERROR/AndroidRuntim         


        
11条回答
  •  [愿得一人]
    2020-12-29 08:29

    I know it's not your problem , but I had exactly the same problem. Suddenly my app stopped working. I didint make any change to manifest, but with some accident there was missing first row:

    This caused ClassNotFoundException for launcher activity. I was struggling with that for few hours and I overlooked this every time I was checking manifest for possible mistake.

    Strange thing happened after I have deleted this row again. Suprise, suprise app was still working. (and I didnt forget to rebuild app)

    Hope this help someone to save few hours.

提交回复
热议问题