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

Android Heap Space Errors [closed]

asked 2012-11-26 12:35:22 -0600

updated 2014-01-28 17:14:24 -0600

ngrennan gravatar image

Hi All

I'm trying to embed a ROS Android application into my android device however I get the following errors

[2012-11-27 10:20:22 - Dex Loader] Unable to execute dex: Java heap space
[2012-11-27 10:20:22 -] Conversion to Dalvik format failed: Unable to execute dex: Java heap space

in the console output of eclipse.

The project is based off the android_tutorial_pubsub project with my own NodeMain incorporated into it.

My Project has all the JARs from the android_tutorial_pubsub/libs wrapped up into a user library (a solution on stack overflow which didn't fix the problem).

The org.ros.android_gingerbread_mr1. is included in the build path, as when I include it as a library under the project>>properties>>android i get a conflict between its JARs and the ones from android_tutorial_pubsub. So its included on project>>properties>>Java Build Path as a required Project. (allows the MainActivity to compile and doesn't conflict JARs.

I've also adjusted the eclipse.ini file Xss property to 1024 as suggested by some.

Anyone have any thoughts?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by PeterMilani
close date 2012-11-29 11:51:15

1 Answer

Sort by ยป oldest newest most voted

answered 2012-11-26 12:44:25 -0600

updated 2012-11-29 11:50:52 -0600

Okay, I published the last line of the error in Google and came up with a couple of different responses the one that worked is listed here in stack oveflow:

stackoverflow link

I increased my Xms values to 512 as suggested and the program advanced.



edit flag offensive delete link more

Question Tools


Asked: 2012-11-26 12:35:22 -0600

Seen: 1,546 times

Last updated: Nov 29 '12