Unable to execute dex: method ID not in [0, 0xffff]: 65536
2015-09-08 20:06
302 查看
原因:http://ingramchen.io/blog/2014/09/prevention-of-android-dex-64k-method-size-limit.html
android { compileSdkVersion 22 buildToolsVersion '22.0.1' defaultConfig { //开启multidex模式,越过dex文件不能超过65536的限制 multiDexEnabled true }
dependencies { compile 'com.android.support:multidex:'}
如果没有自定义application,则在AndroidManifest.xml的<appliation>节点配置android:name="android.support.multidex.MultiDexApplication"
如果定义了application,则继承
android.support.multidex.MultiDexApplication
相关文章推荐
- poj 3190 经典贪心(区间图:色数=团数)
- 数据库Sharding的基本思想和切分策略
- Android 笔记7
- iOS UIRefreshControl的使用 示例
- 使用Python做科学计算初探
- net_device 结构
- 大端模式 小端模式
- Chapter4.17 Symbolic link
- 写了一个增量式的爬虫,但是并不完美,希望大牛们可以指正指正!
- 1022. D进制的A+B (20)
- LeetCode || N-Queens II
- jieba中文分词的.NET版本:jieba.NET
- AI设计之Behavior Designer
- C# 窗口实现打字游戏
- C++11系列学习之四----auto
- Android平台打印调用栈
- POJ 1273:Drainage Ditches 网络流模板题
- 1021. 个位数统计 (15)
- Mongodb的常用命令
- [LeedCode OJ]#203 Remove Linked List Elements