Android Studio 编译报错 Error:Error converting bytecode to dex: Cause: com.android.dex.DexIndexOverflowE
来源:互联网 发布:数据库使用表语句 编辑:程序博客网 时间:2024/06/01 23:06
用AS导入了一个eclipse开发的apk时,报了如下的错:
Error:Error converting bytecode to dex:
Cause: com.android.dex.DexIndexOverflowException: Cannot merge new index 66678 into a non-jumbo instruction!
借鉴了网上大家的方法,现在把我的解决方法记录下来
1.在项目的build.gradle文件的dependencies 节中添加分包设置:
dependencies {
... compile'com.android.support:multidex:1.0.0'
...
}
2.通过在defaultConfig节中设置multiDexEnabled标签为true,开启multi-dexing支持.
defaultConfig {... multiDexEnabled true...}
3.大家有说在AndroidManifest.xml文件的Application声明中添加:
android:name="android.support.multidex.MultiDexApplication"我没用添加。。。
4.重新build,生成APK
参考如下链接
http://www.cnblogs.com/yeahgis/p/4660873.html
0 0
- Android Studio 编译报错 Error:Error converting bytecode to dex: Cause: com.android.dex.DexIndexOverflowE
- Android Studio下遇到error::Error converting bytecode to dex: Cause: com.Android.dex.DexException:
- Android Studio下遇到error::Error converting bytecode to dex: Cause: com.Android.dex.DexException:
- Android Error:Error converting bytecode to dex: Cause: com.android.dex.DexException: Multiple dex fi
- Error:Error converting bytecode to dex: Cause: com.android.dex.DexException: Multiple dex files defi
- Error:Error converting bytecode to dex: Cause: com.android.dex.DexException: Multiple dex files de
- Error:Error converting bytecode to dex: Cause: com.android.dex.DexException: Multiple dex files defi
- Error:Error converting bytecode to dex: Cause: com.android.dex.DexException: Multiple dex files defi
- Error:Error converting bytecode to dex: Cause: com.android.dex.DexException: Multiple dex files defi
- Error:Error converting bytecode to dex: Cause: com.android.dex.DexException: Multiple dex files defi
- Error:Error converting bytecode to dex:Cause: com.android.dex.DexException: Multiple dex files defin
- 打包错误Error converting bytecode to dex: Cause: com.android.dex.DexException: Multiple dex files define
- AS开发中出现Error(四)——Error:Error converting bytecode to dex: Cause: com.android.dex.DexException: Mult
- Android开发 友盟统计、推送集成,Error:Error converting bytecode to dex: Cause: com.android.dex.DexExcept0ion:
- java-Android Error:Error converting bytecode to dex: Cause: Dex cannot parse version 52 byte code.
- recyclerview的“Error:Error converting bytecode to dex“报错
- Error:Error converting bytecode to dex:Cause:c
- Error converting bytecode to dex
- 服务端返回的数据包含回车符,导致前端报错的解决方法
- LeetCode (3Sum Closest)
- 谁的人生不迷茫 ?! 迷茫的不止是你!
- 使用BigDecimal进行精确运算
- jdbc.properties
- Android Studio 编译报错 Error:Error converting bytecode to dex: Cause: com.android.dex.DexIndexOverflowE
- 保存eclipse个人配置的几种方式
- 关于Express模块的学习
- Eclipse常用快捷键和开发常用命令
- android实体类相同字段赋值
- 一张图告诉你什么是Iaas/Pass/Sass
- Ubuntu16与php-mbstring不得不说的故事
- spark及scala/idea问题汇总
- java——多态