Unable to instantiate activity ComponentInfo或java.lang.ClassNotFoundException: com.ibright.herolegen
来源:互联网 发布:arm体系结构与编程 编辑:程序博客网 时间:2024/05/29 20:02
不知道怎么回事,在libs中添加了jar包后,无法给jar包附加上源码,于是采取以下措施:
删除自动生成的依赖:
在Android Dependences目录上右击->Build Path ->Remove from Build Path
然后往libs中拖入jar包,然后添加jar的引用,这样,就可以给jar包附上源码了。
但是运行程序的时候,报以下的错误:
于是猜测是依赖引起的问题,解决办法:
在工程上右键->属性[或者 alter+Enter],进入Java Build Path ,order and export,勾选刚刚引入的jar包,确定,然后clear,重新运行工程,问题解决。
- Unable to instantiate activity ComponentInfo或java.lang.ClassNotFoundException: com.ibright.herolegen
- Unable to instantiate activity ComponentInfo{com.xxx.xxx} java.lang.ClassNotFoundException
- Unable to instantiate activity ComponentInfo java.lang.ClassNotFoundException: Didn't find class on
- Unable to instantiate activity ComponentInfo{}: java.lang.ClassNotFoundException: Didn't find class
- java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.gaobo.e5community/com.g
- java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.irun/com.exampl
- java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.gditc.mmms/com.gditc.mm
- java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.yf.huiju/com.yf.huiju.a
- java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.badlogic.androidgames.
- java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.AndroidCaptureC
- java.lang.RuntimeException: Unable to instantiate activity ComponentInfo
- AndroidRuntime(21900): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo
- java.lang.RuntimeException: Unable to instantiate activity ComponentInfo异常解决
- java.lang.RuntimeException: Unable to instantiate activity ComponentInfo异常解决
- java.lang.RuntimeException: Unable to instantiate activity ComponentInfo异常解决
- java.lang.RuntimeException: Unable to instantiate activity ComponentInfo异常总结
- [解决方案]java.lang.RuntimeException:Unable to instantiate activity ComponentInfo
- java.lang.RuntimeException: Unable to instantiate activity ComponentInfo异常解决
- Oracle 11g 中告警日志的位置
- hdu - 4710/4611 - Balls Rearrangement
- php文件上传错误代码
- Huffman编码的不建树做法 UVALive 2088 Entropy
- 网络获取图片
- Unable to instantiate activity ComponentInfo或java.lang.ClassNotFoundException: com.ibright.herolegen
- hibernate之saveorupdate()、save()、update()都有什么区别
- Eclipse RAP2.1部署到Tomcat总结
- [Python入门及进阶笔记]Python-基础-文件处理小结
- Android:图片添加水印
- C语言全局变量定义与声明技巧
- 喵星战争(十一):error调试
- 4611 hdu Balls Rearrangement
- hdu 2504 又见GCD