没有在路径上找到类:dexpathlist [英] Didn't find class on path: dexpathlist

查看:216
本文介绍了没有在路径上找到类:dexpathlist的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

认真的,我不知道该怎么办来解决这个问题。
我的android项目工作正常,直到我需要导入与Maven的库。因此,一切都开始崩溃。



发生了什么:当我启动我的应用程序时,LogCat上出现以下错误,android告诉我的应用程序停止工作。我在这里和互联网的其余部分搜索了类似的错误,但是所有人都没有为我工作。



错误:
java.lang.RuntimeException:无法实例化活动ComponentInfo {com.example.buscaserra / com.buscaserra.main.ActivitySplash}:java.lang.ClassNotFoundException:没有找到类com.buscaserra.main。 ActivitySplash路径:DexPathList [[zip文件/system/framework/com.google.android.maps.jar,zip文件/data/app/com.example.buscaserra-2.apk],nativeLibraryDirectories = [ /data/app-lib/com.example.buscaserra-2,/ vendor / lib,/ system / lib]]



清单和包:



构建路径:



请问,我不知道还有什么要做的。我的项目截止日期很近,绝望。
提前感谢。

解决方案


对我来说有用的是将android-support-v4.jar添加为lib,并确保它已在项目属性 - >构建路径 - >订单&出口。
提到了此处


Seriously, i don't know what to do to solve this problem. My android project was working fine, until i needed to import a library with Maven. Since that, everything started to collapse.

What is happening: When i start my application, the following error appears on LogCat and android tells that my app stopped working. I've searched for this similar error here AND on the rest of the internet, but everything people did haven't worked for me.

Error: java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.buscaserra/com.buscaserra.main.ActivitySplash}: java.lang.ClassNotFoundException: Didn't find class "com.buscaserra.main.ActivitySplash" on path: DexPathList[[zip file "/system/framework/com.google.android.maps.jar", zip file "/data/app/com.example.buscaserra-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.buscaserra-2, /vendor/lib, /system/lib]]

Manifest and packages:

Build Path:

Please, i don't know what else to do. My project deadline is near and im desperate. Thanks in advance.

解决方案

Same problem here. What worked for me was adding android-support-v4.jar as a lib and making sure it was checked on Project properties -> Build Path -> Order & export. It was mentioned here

这篇关于没有在路径上找到类:dexpathlist的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆