报错:Didn't find class "**Activity" on path: DexPathList[dexElements=[****]
来源:互联网 发布:淘宝搜白夜追凶接电话 编辑:程序博客网 时间:2024/05/17 14:26
今天第一次遇到这个“java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{.MainActivity}: java.lang.ClassNotFoundException: Didn’t find class “.MainActivity” on path: DexPathList[dexElements=[zip file “/mnt/asec/.apk”],nativeLibraryDirectories=[/mnt/asec/-1/lib, /vendor/lib, /system/lib]]
”错误,该activity不是在吗?结果自己郁闷了好久,
上网查了之后
借鉴了该博主的总结发现了自己是犯了第三条错误。
http://blog.csdn.net/lovexieyuan520/article/details/9032797/
1。Manifest文件中注册的Activity的名称,有没有写错,包名有没有搞错,有些网友,可能只写一个类名,前面用点号代替,但是这个类不在默认的包内,所以报这个错,那么只要写上类的全名,即可。
2。有些android,需要一些第三方的包,直接将其引入,在以前是可以的,但是在最新的adt中不行,必须在程序中新建一个libs文件夹,将第三方的jar文件copy到libs文件夹中,才行,很多人因为这样才报错,特别是以前的项目,默认并没有这个libs文件夹,但是新版本的adt,默认就建了libs这个文件夹。
3。有一点也很重要,在Java Build Path面板下的Order and Export中,一定要把你引入的jar文件,勾上,否则,跟没引用一样,切记。
- 报错:Didn't find class "**Activity" on path: DexPathList[dexElements=[****]
- 报ClassNotFoundException: Didn't find class "...Activity" on path: DexPathList
- 报ClassNotFoundException: Didn't find class "...Activity" on path: DexPathList
- ClassNotFoundException: Didn't find class "...Activity" on path: DexPathList
- 报ClassNotFoundException: Didn't find class "...Activity" on path: DexPathList
- 出现报错java.lang.ClassNotFoundException: Didn't find class "okio.Buffer" on path: DexPathList
- 项目报错:Caused by: java.lang.ClassNotFoundException: Didn't find class "..."on path: DexPathList
- didn't find class on path dexpathlist错误解决办法
- Android 异常 Didn't find class .... on path: DexPathList[[z
- Didn't find class "...l" on path: DexPathList
- Didn't find class on path dexpathlist 错误
- ClassNotFoundException: Didn't find class on path: DexPathList
- didn't find class on path dexpathlist错误解决办法
- Android studio issue: Didn't find class "..." on path:DexPathList
- RuntimeException : Didn't find class on path: DexPathList
- java.lang.ClassNotFoundException: Didn't find class ".Activity" on path: DexPathList
- Android报Didn't find class "com。。。MainActivity" on path: DexPathList错误
- UtalPTR 运行报错 Didn't find class "in.srain.cube.image.CubeImageView" on path: DexPathList[[zip file
- MAC下快速查看 资源库 文件
- sqlserver导出 数据字典的SQL语句
- InternetQueryDataAvailable 读取字节数为0的解决方法
- 人脸检测与识别
- linux常用操作命令
- 报错:Didn't find class "**Activity" on path: DexPathList[dexElements=[****]
- ssh不用密码登陆
- NodeJs安装教程
- 位移操作其中的多个位
- Tomcat启动时,报java.io.EOFException异常
- Access violation reading location 在把一个vector传给写文件或者写对象的函数时报错
- 【回文】leetcode - Shortest Palindrome
- Nginx+Tomcat负载均衡配置
- Activity 生命周期详解