项目中引入RXjava和RxAndroid后引起不能编译apk Error:Error converting bytecode to dex
来源:互联网 发布:微信拍卖系统源码 编辑:程序博客网 时间:2024/06/16 22:08
忘了什么时候查过资料,说是当项目中引入的类超过了一定的数目就会使得项目编译报错:
引入RxJava后,apk编译不成功,发现报错:
Error:Error converting bytecode to dex:
Cause: com.android.dex.DexException: Multiple dex files define Lio/reactivex/BackpressureOverflowStrategy;
转换文件出错了!!!
Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'D:\java\jdk1.8.0_121\bin\java.exe'' finished with non-zero exit value 2
但是当我新建一个项目后然后引入compile资源,之后可以正常使用, 原来我为了方便,下载了jar文件,导致了文件冲突,删掉就行了。
0 0
- 项目中引入RXjava和RxAndroid后引起不能编译apk Error:Error converting bytecode to dex
- Error converting bytecode to dex
- Error converting bytecode to dex
- 关于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
- Android Studio 编译报错 Error:Error converting bytecode to dex: Cause: com.android.dex.DexIndexOverflowE
- Eclipse项目 转为 Studio项目,遇见Error:Error converting bytecode to dex:
- AS报Error:Error converting bytecode to dex:
- recyclerview的“Error:Error converting bytecode to dex“报错
- 关于Error:Error converting bytecode to dex问题解决
- API测试工具 postman 介绍
- QMUI / QMUI_iOS框架学习(三)
- UrlConnection doPost Https请求 、编码设置
- 【算法设计与数据结构】为何程序员喜欢将INF设置为0x3f3f3f3f?
- 数据结构(线性表):单链表
- 项目中引入RXjava和RxAndroid后引起不能编译apk Error:Error converting bytecode to dex
- 话说神奇的content="IE=edge,chrome=1"的meta标签内容
- 别名typeAliases
- ScrollView设置子View的高度为match_parent,无效
- power key休眠唤醒时序图
- MySQL数据库--MySQL数据库语句、坑点总结
- 1043. Is It a Binary Search Tree (25)
- Delphi 按Esc快捷键退出程序的简单方法
- Android Studio 报错getcontext()方法找不到