Search code examples
androidjacksonesri

Unable to execute dex: Multiple dex files define Lorg/codehaus/jackson/Base64Variant


In my android application I have one library project that uses MicrosoftSyncFramework. This library project include jackson-mini-1.9.10.jar

And I am using ESRI arcgis Map that include following jars

  1. arcgis-android-api.jar
  2. jackson-core-lgpl-1.9.5.jar
  3. jackson-mapper-lgpl-1.9.5.jar
  4. jcifs-1.3.17.jar

Now as library projects have different jackson jar I am getting following exception

Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lorg/codehaus/jackson/Base64Variant;

As jar are not same so I can not remove any jar. Please suggest if we can set any priority.

see below images

  1. Android app with ESRI map:-

Android app with ESRI map

  1. microsoftSyncFrameworkToolkit library project:-

    microsoftSyncFrameworkToolkit library project


Solution

  • I resolved this error by configuring build path of library project. I unchecked private Library refer following screen shots enter image description here