Monday 20 May 2019

android-support-multidex.jar not working in eclipse



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?


Answer




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!



No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...