I was incompletely implementing MultiDex support, so some of my classes weren’t in the proper dex file. To fix it, you have to do more than just set multiDexEnabled = true in your defaultConfig block. You also have to:

Include compile ‘com.android.support:multidex:1.0.0’ in your dependencies
Have your Application class extend MultiDexApplication instead of just Application. Alternatively, you can call MultiDex.install() in attachBaseContext() of your application.
See https://developer.android.com/tools/building/multidex.html for more details.

Minimal MultiDex capable application. To use the legacy multidex library there is 3 possibility:Declare this class as the application in your AndroidManifest.xml. Have your Application extends this class. Have your Application override attachBaseContext starting with protected void attachBaseContext(Context base) {super.attachBaseContext(base);MultiDex.install(this);

更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. Android中资源文件用法简单示例
  2. Android UI开发基础
  3. Android eng版系统烧录
  4. 《第一行代码--Android》学习笔记--第一
  5. Android(安卓)中Edittext设置不弹出软键
  6. Android(安卓)SDK1.5 模拟器 快捷键 (模
  7. Android github上的好的开源项目汇总
  8. [置顶] android 入门基础(11) ---编程体会
  9. Android中BroadCastReceiver使用
  10. Android之Fragment 基本介绍