Android java.lang.RuntimeException: Unable to instantiate activity ComponentInfo

前端 未结 12 1789
太阳男子
太阳男子 2021-01-12 03:49

Ok guys this doesn\'t make sense to me at all and I don\'t understand why I am getting this error in my app. I have registered the activity class in the android manifrest xm

12条回答
  •  时光取名叫无心
    2021-01-12 04:18

    Have you tried to initialise anything in your class before OnCreate gets called?
    If you initialise static variables (for example) it can give you this (infuriatingly obtuse) error.

提交回复
热议问题