android.app.Application cannot be instantiated due to NullPointerException

后端 未结 3 947
失恋的感觉
失恋的感觉 2020-11-30 12:51

I\'m kind of a noob in the android world, and doing a pet project for exercising. It\'s a very simple reminder-like app with just two activities. One is a customized ListVie

3条回答
  •  星月不相逢
    2020-11-30 13:11

    I had exactly the same error, although with other and more simpler code than yours. I found out that the problem occurred only if I didn't close the app in the emulator after re-run it from eclipse. So if I close it before run it from eclipse, everything works fine. But since I am really new to android, I have no clue why this is so. I previous test apps this was never a problem.

提交回复
热议问题