Android app ClassNotFoundException for main activity

后端 未结 12 652
灰色年华
灰色年华 2020-12-06 10:07

Most of the devices can run my app but I got this error report :

java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.company.app/com         


        
12条回答
  •  一向
    一向 (楼主)
    2020-12-06 10:13

    I get this error when my class isn't correctly defined in the manifest, typically because I haven't put in the correct name space as in:

        
    

    as opposed to

        
    

    Not sure why it would work for you on some devices and not others though.

提交回复
热议问题