启用MultiDex支持在Android中实现65K +方法在Eclipse [英] Enabling MultiDex Support in Android to achieve 65K+ methods in Eclipse

查看:350
本文介绍了启用MultiDex支持在Android中实现65K +方法在Eclipse的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在eclipse建立Multidex apk文件,并没有能够成功。

I am trying to build Multidex apk in eclipse, and not able to succeed.

我尝试以下步骤,配置Multidex支持Android应用程序:

I tried following steps, for configuring Multidex support in android app:

  1. 在我加入了位于/演员/安卓/支持/ multidex /我的项目Multidex库。
  2. 当我的应用程序的定制应用程序类,我已延长android.support.multidex.MultiDexApplication类为我的申请。

不过我不能够建立APK。

Still i am not able to build apk.

Android开发者也没有任何文档构建Multidex APK在Eclipse中,其仅具有文档对于摇篮和Android工作室。

Android developer is also not having any documentation for building Multidex apk in eclipse, its only having documentation for gradle and Android Studio.

推荐答案

您必须修改build.gradle添加multiDexEnabled真下buildconfig,buildType或productFlavour部分

You have to modify build.gradle to add multiDexEnabled true under buildconfig, buildType or productFlavour sections

defaultConfig {
    // The support library goes as back as Android-14, and is not required for 21+
    minSdkVersion 14 

    // Enabling multidex support.
    multiDexEnabled true
}

如果您正在构建的老蚂蚁,这是一个阻塞问题,所以你必须移动到摇篮或Maven或使用旧的麻烦的解决方案

If you're building on old Ant, this is a blocking problem so you'll have to move to gradle or maven or use the old cumbersome solution

http://android-developers.blogspot.com.es/2011/07/custom-class-loading-in-dalvik.html

这篇关于启用MultiDex支持在Android中实现65K +方法在Eclipse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆