java.lang.RuntimeException: Unable to instantiate activity ComponentInfo

前端 未结 30 2679
感动是毒
感动是毒 2020-11-22 15:15

I was trying to run a sample code While launching the application in the android 1.5 emulator , I got these errors.... Any one have some hint..?

ERROR from LogCat:<

30条回答
  •  不要未来只要你来
    2020-11-22 15:45

    In my case, I was trying to initialize the components(UI) even before the onCreate is called for the Activity.

    Make sure your UI components are initialized/linked in the onCreate method after setContentView

    NB: This is my first mistake while learning Android programming.

提交回复
热议问题