-1

when i tried to run it shows error as below,can anyone tell me how to configure multidex in eclipse

Dx trouble writing output: Too many field references: 83958; max is 65536. You may try using --multi-dex option. References by package: 2 android.graphics 582 android.support.v7.appcompat 83374

2 Answers2

0

Possible duplicate: Android multidex support library using eclipse

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! (Fixed in 4.0.0)

I would suggest migrating to Android Studio.

Community
  • 1
  • 1
Jared Rummler
  • 37,824
  • 19
  • 133
  • 148
0

If you are using Android services, just import the one you really need...In this way you can save lots of refences and stay under 65k avoiding the error. Otherwise you need to use multidex-support

Download the library: https://developer.android.com/tools/support-library/features.html#multidex

And then add it to your project as described in the link. Hope you can solve quickly your problem

shaolin
  • 463
  • 5
  • 13