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

前端 未结 12 1846
太阳男子
太阳男子 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:40

    Actually I found my answer to this same issue here: java.lang.ClassNotFoundException on working app

    You don't provide a name for the Application tag, only the Activity. So if your issue was the same as mine, you should be able to remove the following and things will work:

    android:name=".Battery"

提交回复
热议问题