ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

rostango multiple dex files

asked 2014-12-13 20:42:00 -0500

dan gravatar image

Following the rostango wiki, continuing to run into problems, seems like a different error pops up with each reboot. Right now the initial and the rostango files successfully build with catkin_make and the rostango project opens ok in android-studio 0.6.1. However, when I try to run one of the samples, e.g. vio, I get this error: Multiple dex files define Lorg/apache/commons/codec/Decoder;

Searching suggests that this indicates redundant jar files. But which ones?

Here is the terminal output:

....... :tango_vio:processDebugResources UP-TO-DATE :tango_vio:generateDebugSources UP-TO-DATE :tango_vio:compileDebugJava :tango_vio:preDexDebug :tango_vio:dexDebug UNEXPECTED TOP-LEVEL EXCEPTION: Multiple dex files define Lorg/apache/commons/codec/Decoder; at at at at at at at at at at


FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':tango_vio:dexDebug'. > Failed to run command: /home/dbarry/Android/Sdk/build-tools/19.1.0/dx --dex --num-threads=4 --output
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-12-13 23:34:00 -0500

dan gravatar image

updated 2014-12-13 23:34:18 -0500

I removed all my JDK versions and replaced them with a single one (Oracle JDK 7), made sure all the paths and variables (e.g., JAVA_HOME in .bashrc, javaHome in android-studio) pointed to the JDK and this went away.

edit flag offensive delete link more


Can you please explain more on this solution? I try would you did but I am still having this issue. I am thinking maybe I am doing it wrong so can you go in depth what you did. Thank you.

rudy gravatar image rudy  ( 2015-06-01 11:20:40 -0500 )edit

Question Tools

1 follower


Asked: 2014-12-13 20:42:00 -0500

Seen: 784 times

Last updated: Dec 13 '14