com.android.dex.DexException: Multiple dex files define Lcom/xxx/demo/BuildConfig
来源:互联网 发布:英国域名 编辑:程序博客网 时间:2024/05/16 14:33
今天遇到一个问题,编译不通过,报错如下:
com.android.build.api.transform.TransformException: com.android.dex.DexException: Multiple dex files define Lcom/xxx/demo/BuildConfig;
原因是我的项目的主包名和依赖库的主包名冲突了,解决办法:
如果你的依赖库是自己的,比如叫com.xxx.demo,可以新建一个包叫做com.xxx.mydemo,然后将com.xxx.demo目录下的类和包全部拷贝到com.xxx.mydemo这个包下,把原来的com.xxx.demo包删除,然后再修改这个库的manifest文件里面的package="com.xxx.mydemo"
然后clean---》rebuild就不会报错了
阅读全文
0 0
- com.android.dex.DexException: Multiple dex files define Lcom/xxx/demo/BuildConfig
- Cause: com.android.dex.DexException: Multiple dex files define Lcom
- studio报com.android.dex.DexException: Multiple dex files define Lcom/umeng/analytics错误
- com.android.dex.DexException: Multiple dex files define Lcom/sina/sso/RemoteSSO;
- Android Studio com.android.dex.DexException: Multiple dex files define/xxx/xxx/xxx
- com.android.dex.DexException: Multiple dex files define的解决办法
- com.android.dex.DexException: Multiple dex files define ........RemoteSSO
- com.android.dex.DexException: Multiple dex files define
- 解决ExecutionException: com.android.dex.DexException: Multiple dex files define XXX
- DexException: Multiple dex files define Lcom/squareup/leakcanary/
- Android Dex:com.android.dex.DexException: Multiple dex files define 解决办法
- 打包错误Error converting bytecode to dex: Cause: com.android.dex.DexException: Multiple dex files define
- Dex Loader] Unable to execute dex: Multiple dex files define Lcom/test/aaa/BuildConfig;
- Android Studio com.android.dex.DexException: Multiple dex files define(重复引用包)
- Android问题集锦之三十六:com.android.dex.DexException: Multiple dex files define
- Android Studio com.android.dex.DexException: Multiple dex files define(重复引用包)
- Android Studio com.android.dex.DexException: Multiple dex files define(重复引用包)
- Android Studio com.android.dex.DexException: Multiple dex files define(重复引用包)
- 卷积神经网络Quiz3
- 静态数组顺序表
- ubuntu17 常用软件apt安装
- Express框架中如何引用ejs模板引擎
- IP组播技术介绍及实现例子
- com.android.dex.DexException: Multiple dex files define Lcom/xxx/demo/BuildConfig
- Java compiler level does not match解决方法
- ios开发中报错处理--include of non-modular header inside XXXX
- jvm编程思想
- python requests 库 跳过ssl 验证
- 35年行业经验、20年在微软——成为专家级程序员的修炼之道
- Greenplum vacuum ao表和heap表的区别
- unity shader-边缘检测
- 《算法艺术与信息学竞赛》之 递推 例二 Yanghee 的算术 HDU