Didn't find class "android.support.v7.widget.CardView" on path: DexPathList[[zip file "/data/app/com
来源:互联网 发布:淘宝店铺免费运营推广 编辑:程序博客网 时间:2024/05/02 00:44
Didn't find class "android.support.v7.widget.CardView" on path: DexPathList[[zip file "/data/app/com.example.administrator.myapplication-2/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
接着Build -->Clean project。
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.administrator.myapplication/com.example.administrator.myapplication.MainActivity}: android.view.InflateException: Binary XML file line #12: Error inflating class android.support.v7.widget.CardView
出现这个问题是由于,Android系统找不到CardView这个类。
解决方法:
在build.gradle中添加如下代码:
dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:22.1.1' compile 'com.android.support:cardview-v7:22.1.1'}
接着Build -->Clean project。
0 0
- Didn't find class "android.support.v7.widget.CardView" on path: DexPathList[[zip file "/data/app/com
- Android Studio-Didn't find class XXX on path: DexPathList [zip file "/data/app/packagename/base.apk]
- Android Studio-Didn't find class XXX on path: DexPathList [zip file "/data/app/packagename/base.apk]
- Didn't find class “android.support.v7.internal.widget.TintManager” on path
- Caused by: java.lang.ClassNotFoundException: Didn't find class "XXX" on path: DexPathList[[zip file
- Caused by: java.lang.ClassNotFoundException: Didn't find class ""on path: DexPathList[[zip file "/da
- Didn't find class "android.support.v7.cardview.R$styleable"
- Android 异常 Didn't find class .... on path: DexPathList[[z
- Android studio issue: Didn't find class "..." on path:DexPathList
- Android报Didn't find class "com。。。MainActivity" on path: DexPathList错误
- eclipse with android : Didn't find class "com.xx.xx.MainActivity" on path: DexPathList
- Didn't find class "android.support.v7.widget.RecyclerView"
- Didn't find class "android.support.v7.widget.RecyclerView"
- Didn't find class "android.support.v7.widget.TintManager
- UtalPTR 运行报错 Didn't find class "in.srain.cube.image.CubeImageView" on path: DexPathList[[zip file
- didn't find class on path dexpathlist错误解决办法
- ClassNotFoundException: Didn't find class "...Activity" on path: DexPathList
- 报ClassNotFoundException: Didn't find class "...Activity" on path: DexPathList
- 【第4周 项目2 - 建设“单链表”算法库】
- RaspberryPi 更新国内源
- 【练习题】 使用程序建立一个多级的目录,在每个目录下,新建一个和目录名字一样的txt文件,并写入1990
- rsync安装
- 设计模式六大原则(5):迪米特法则
- Didn't find class "android.support.v7.widget.CardView" on path: DexPathList[[zip file "/data/app/com
- 修改phpcms V9的后台登录地址
- 密码发生器
- 高级加密标准AES的工作模式(ECB、CBC、CFB、OFB)
- STM32 keil5编译优化
- 古堡算式
- MySql绿色版配置及使用详解
- CastAR增强现实游戏眼镜
- oracle 统计信息