Multiple dex files define Lrx/android/BuildConfig该如何处理

lyq027 2016-10-08 04:05:14
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.dex.DexException: Multiple dex files define Lrx/android/BuildConfig;

新拉取的项目,换了台电脑,就报这个错误,这个要怎么解决
...全文
387 3 打赏 收藏 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
lyq027 2016-10-08
  • 打赏
  • 举报
回复
是的《我知道有多余的包,只是不知道是哪个包。要怎么去重 下面是我的依赖包 //bmob compile('cn.bmob.android:bmob-sdk:3.5.1'){ exclude group: 'rx.java' } compile 'cn.bmob.android:http-legacy:1.0' compile 'com.youth.banner:banner:1.3.3' compile 'com.zhy:base-adapter:3.0.3' compile 'de.hdodenhof:circleimageview:2.1.0' //material-dialogs compile 'com.afollestad.material-dialogs:core:0.9.0.2' compile 'com.zhy:flowlayout-lib:1.0.3' compile 'com.library.tangxiaolv:telegramgallery:1.0.1' compile 'in.srain.cube:ultra-ptr:1.0.11' compile 'in.srain.cube:cube-sdk:1.0.44@aar' debugCompile 'com.squareup.leakcanary:leakcanary-android:1.4-beta2' releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.4-beta2' compile 'com.jakewharton:butterknife:7.0.1' compile 'com.jakewharton.rxbinding:rxbinding:0.4.0' compile 'com.github.bumptech.glide:glide:3.7.0' compile 'com.orhanobut:logger:1.15' compile 'com.trello:rxlifecycle:0.8.0' compile 'com.trello:rxlifecycle-components:0.8.0' 通过展开,发现bmob这个包中有rxAndroid这个,但是通过上面那样去重,好像没效果,一样报错
gemgaozhen 2016-10-08
  • 打赏
  • 举报
回复
gradle配置里面有多余的包了,删除掉就好了
luqing414 2016-10-08
  • 打赏
  • 举报
回复
http://stackoverflow.com/questions/25103288/multiple-dex-files-define-my-package-buildconfig-cant-find-the-cause 看看这个
代码下载链接: https://pan.quark.cn/s/a8fbca3925b4 《鸿蒙OS开发环境构建》指南系统性地阐述了配置和筹备鸿蒙OS开发所需的各种工具和条件的具体方法。鸿蒙OS,亦称HarmonyOS,是由华为研发的一款面向全场景的分布式操作系统,其目标是提供跨平台、多设备间无缝协作的使用体验。本指南涉及了从Linux服务器到Windows工作站的完整开发流程。指南中提及了MobaXterm,这是一款用于连接Linux源码服务器的软件,使得开发人员能够在Windows环境中远程访问Linux服务器。同时,HiTool作为烧录工具,用于将编译后的系统镜像写入开发板。IPOP.EXE则是一款串口终端软件,用于执行串行通信和调试任务。Embedded Studio用于开发设备驱动程序,而DevEco Studio是华为提供的图形化应用程序开发平台,支持C/C++语言,拥有代码编辑、编译、烧录和调试功能,被视为OpenHarmony智能设备开发者的首选集成开发环境。在硬件配置方面,指南列出了必需的设备,包括Linux服务器(推荐Ubuntu 16.04及以上版本),Windows工作台(兼容XP/7/10),以及Hi3518EV300 IoT Camera单板。开发期间,Windows工作台通过USB线与单板相连接,以实现数据传输。此外,为了开展开发工作,还需要安装putty、IPOP、tftp服务器等辅助软件,以及HiTool用于烧录操作。在软件系统要求方面,Linux服务器需要安装bash、Python3.7+、gn、ninja、LLVM等构建工具,这些工具对于生成和执行编译脚本具有关键作用。在Windows工作台上,建议采用Visual Studi...

80,490

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧