recyclerview的“Error:Error converting bytecode to dex“报错
来源:互联网 发布:cf久灵刷枪软件 编辑:程序博客网 时间:2024/06/06 05:51
做实验的时候想要在同一个APP上实现recyclerview和TextInputLayout,于是加入了相关的依赖:
然后悲催的发现了报错:
这是说我加入的recyclerview的jar包中有一些class文件是重复的,看样子就是已经有同样的class文件存在在’com.android.support:design:24.1.1中了。
一开始是尝试在dexOptions设置中加入这句话:preDexLibraries = false,操作如下:
打开File > Project Structure > Project Settings > Modules, 在Properties属性中选择Incremental Dex为true。
这样,在APP下的build.gradle文件下加入了dexOptions。
然后再在dexOptions里面加入上面的那句代码:
这样设置以后,发现错误并没有被解决,但是出现了很多错误信息
根据信息,删除了recyclerview的jar包中的相关class文件。
最终,在删到android-support-v7-recyclerview包中只剩下RecyclerView$ItemHolderInfo.class一个文件的时候,终于不再报错了。
0 0
- recyclerview的“Error:Error converting bytecode to dex“报错
- Error converting bytecode to dex
- Error converting bytecode to dex
- AS报Error:Error converting bytecode to dex:
- Android Studio 编译报错 Error:Error converting bytecode to dex: Cause: com.android.dex.DexIndexOverflowE
- 关于Error:Error converting bytecode to dex:
- 1.Error:Error converting bytecode to dex:
- Error:Error converting bytecode to dex:
- Error:Error converting bytecode to dex:
- Error:Error converting bytecode to dex:
- 关于Error:Error converting bytecode to dex:
- Error:Error converting bytecode to dex
- AndroidStudio--Error converting bytecode to dex
- AndroidStudio--Error converting bytecode to dex
- gradle : Error converting bytecode to dex
- 关于Error:Error converting bytecode to dex问题解决
- Error:Error converting bytecode to dex:Cause:c
- Error:Error converting bytecode to dex: Cause: com.android.dex.DexException: Multiple dex files defi
- 03_php_基本案例
- RDD的依赖关系彻底解密
- Android输入事件详解
- Android中使用ViewPager实现屏幕页面切换和引导页效果实现
- 连续子数组的最大和
- recyclerview的“Error:Error converting bytecode to dex“报错
- Git & GitLab 使用及规范
- 【c语言】typedef用法总结
- 全球9大顶级交易员的核心思想
- 客户机安装Oracle 11g client后的配置(用Net Configuration Assistant配置tnsnames.ora)
- java变量初始化顺序
- Access的替换
- 前端学习整理
- 二叉树的遍历 先序 中序 后序 递归非递归