android-support-multidex.jar not working in eclipse

≯℡__Kan透↙ 提交于 2019-12-06 11:15:54

问题


Recently I faced 65K method limitation issue in my android project. Then I started to implement multidex in that projects. When I try to add this support library in eclipse, the issue not resolved. Still it showing the 65K limitation. But when its working fine in Gradle+Android studio. How can i achieve this in eclipse? Because I don't want to switch to Android studio now.

Here is the steps I have followed,

1) Added the android-support-multidex.jar into build path, 2) overrided, the below method in Application class. Since I am subclassing custom Application class.

@Override
protected void attachBaseContext(Context base) {
    // TODO Auto-generated method stub
    super.attachBaseContext(base);
    MultiDex.install(this);
}

But I can't able to achieve this in eclipse. Any solution for this?


回答1:


Possible duplicate here. Answer from Alex Lipov:

It looks like ADT's ant-tasks project is no longer maintained (it resides under 'legacy' folder). So if you can't migrate to Gradle, you can edit the DexExecTask manually. You'll have of course to rebuild the project locally..

[Edit - 10/25/2014] maven-android-plugin does support multi-dex. However, it currently has a small issue: secondary dex files placed in wrong location. This pull request strives to fix that, so stay tuned!



来源:https://stackoverflow.com/questions/27211246/android-support-multidex-jar-not-working-in-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!