Android 相关错误及解决办法

目录

问题 : Unable to instantiate activity ComponentInfo{com.xxxx.xxxx/com.xxxx.xxxx.LoginActivity}

java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.xxxx.xxxx/com.xxxx.xxxx.LoginActivity}:

java.lang.ClassNotFoundException: Didn’t find class “com.xxxx.xxxx.LoginActivity”
on path: /data/app/com.xxxx.xxxx-1.

解决方法 : 原因AndroidManifest.xml文件出错。将问题Activity的name具体到某个包下即可运行。android:name=”.LogoActivity”改为android:name=”.ac.LogoActivity”.

Share