解决method ID not in [0, 0xffff]: 65536错误的方法
来源:互联网 发布:2017全明星赛哈登数据 编辑:程序博客网 时间:2024/06/10 09:38
最近在做图片加载的时候出现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.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536不知道怎么解决,于是百度了很久才找到答案,在此记录一下,好像是出现了超出了64k的限制
在 app 的build.gradle下添加两句就可以了
defaultConfig {...multiDexEnabled true }`
dependencies {
compile ‘com.android.support:multidex:’
}
“`
点击一下Sync Now重新编译一下就可以
0 0
- 解决method ID not in [0, 0xffff]: 65536错误的方法
- method ID not in [0, 0xffff]: 65536
- method ID not in [0, 0xffff]: 65536” error解决办法
- DexIndexOverflowException: method ID not in [0, 0xffff]: 65536
- Android Studio 错误 com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536
- Android Studio 错误 com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536
- Android Studio 错误 com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536
- Android Studio 错误 com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536
- 错误ExecutionException: com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536
- Android studio打包错误com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536
- (转)Android Studio 错误 com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536
- 解决“com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536”问题
- Android 解决“com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536”问题
- Android解决“com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536”问题
- 解决“com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536”问题
- 解决com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536
- 当android编译出现com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536错误时的处理
- 为什么编译时方法过多会出现method ID not in [0, 0xffff]: 65536的错误
- 学习笔记---关系运算符、条件表达式、逻辑运算
- Gson 系列文章翻译 End
- Run code as python interpreter
- CSS 的overflow:hidden; 、clear:both;属性详细解释
- ios https访问自建证书时遇到的问题
- 解决method ID not in [0, 0xffff]: 65536错误的方法
- 知乎上的100条简短深刻的回答
- Java 社区平台 - Sym 1.7.0 发布
- Swift Style Guide
- 网页查重-simhash算法的java实现
- Okhttp的Post请求参数在Interceptor中修改
- 深度人脸识别的 Caffe 实现(附模型开源地址及论文下载)
- 浅谈命令查询职责分离(CQRS)模式
- 使用ListView控件展示数据