错误“在路径:DexPathList上找不到类" [英] Error 'Didn't find class on path: DexPathList'

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

问题描述

使用Gradle导入一堆(2)库后,在Logcat中出现以下错误:

after importing a bunch (2) of libraries with Gradle, I get the following errors in the Logcat:

https://gist.github.com/devyanlab/1b18fbe67309f3a07d5d

我认为导致模拟器崩溃的主要错误是:

I think the main error that caused the emulator to crash is:

在路径:DexPathList [[zip file"/data/app/com.devyanlab.qomento-1.apk"],nativeLibraryDirectories=[/data/app]上找不到类"de.hdodenhof.circleimageview.CircleImageView" -lib/com.devyanlab.qomento-1,/system/lib]]

Didn't find class "de.hdodenhof.circleimageview.CircleImageView" on path: DexPathList[[zip file "/data/app/com.devyanlab.qomento-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.devyanlab.qomento-1, /system/lib]]

我整周都在搜索,并尝试了所有可能的解决方案,但没有一个起作用.

I've been searching all week and tried all the possible solutions, but none of them worked.

有困难吗?

推荐答案

您是否尝试将de.hdodenhof.circleimageview.CircleImageView作为依赖项添加到您的项目中?

Did you try to add de.hdodenhof.circleimageview.CircleImageView to your project as a dependency?

在Android Studio中:

In Android Studio:

dependencies {
    ...
    compile 'de.hdodenhof:circleimageview:1.3.0'
}

在Eclipse中: 从GitHub下载 CircleImageView项目,并将其作为库添加到您的项目中.

In Eclipse: Download the CircleImageView project from GitHub and add it to your project as a library.

希望它会有所帮助:)

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

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