android 65535解决方案
2016-02-20 16:30
477 查看
应用超过65535的bug:
在build.gradle中:
defaultConfig中添加multiDexEnabled true如:
defaultConfig {
applicationId "com.fanxing.hezong"
minSdkVersion 11
targetSdkVersion 23
multiDexEnabled true
}
dependencies中添加compile project(‘:IMKit’)如:
dependencies {
compile 'com.android.support:multidex:1.0.0'
compile project(':IMKit')
compile 'com.android.support:support-v4:21.0.3'
}
将application改为extends MultiDexApplication
在build.gradle中:
defaultConfig中添加multiDexEnabled true如:
defaultConfig {
applicationId "com.fanxing.hezong"
minSdkVersion 11
targetSdkVersion 23
multiDexEnabled true
}
dependencies中添加compile project(‘:IMKit’)如:
dependencies {
compile 'com.android.support:multidex:1.0.0'
compile project(':IMKit')
compile 'com.android.support:support-v4:21.0.3'
}
将application改为extends MultiDexApplication
相关文章推荐
- Android Studio实现代码混淆
- 封装一个Android数据库框架
- android 开发技巧(1)--使用 weight 属性实现视图的居中显示
- Android 判断SD卡是否存在及容量查询
- android AsyncTask介绍
- android学习之读取xml文件(使用XmlPullParser)
- ServiceManager的启动过程分析
- 介绍 Android DropBoxManager Service
- Android属性动画一
- Android Binder实现的进程间IPC过程概要
- Android Binder实现的进程间IPC过程概要
- 6.10.1 Android 推送中的心跳连接的概念
- Android笔记---LinearLayout线性布局
- ANDROID_MARS学习笔记_S03_004_getAllProviders、LOCATIONLISTENER、getBestProvider
- android:padding和android:margin的区别
- android学习之生成xml文件(使用XmlSerializer)
- 2015年android出现的新技术
- android 源gbk乱码解决
- 【Tools】【IDE】AndroidStudio 使用技巧
- 【Tools】【IDE】AndroidStudio 使用技巧