简体   繁体   中英

Multiple dex files error with signpost and gdata jars

My app requires both signpost-core-1.2.1.2.jar and one of Google's libraries gdata-core-1.0.jar . But the signpost jar has some of the classes packaged in the gdata-core package. So, my app project is not building. Here is the error:

 Unable to execute dex: Multiple dex files define Lcom/google/gdata/util/common/base/Escaper;

How can I fix this conflict.. I need both the jars for different purposes within my app.

You can still keep two jars, but you would need to modify / repackage one of them to resolve runtime conflicts

  • You need to decide what jar you will use for that conflicting class
  • Open one of jars with 7zip (or alternative) and remove the path\\to\\Conflict.class file
  • save the new jar
  • update classpath to include new jar in your IDE

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM