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

classnotfoundexception on pubsub tutorial

asked 2012-04-10 16:18:38 -0500

Sam_hon gravatar image

updated 2014-01-28 17:11:56 -0500

ngrennan gravatar image

Hello everyone,

I've been trying to get rosjava to work on my Android phone but for some reason, I have not made much success.

What I have done basically was, to download and install all ros related packages, rosjava, and roscore and then going through the tutorial on ros.org to get pubsub tutorial to run. Everything goes fine and I do have both Gingerbread and honeycomb in my project and they are in my build path and and everything builds with no problem, but when I try to debug (or run) the app, it throws some "classnotfoundexception" and program halts and Android reports that program closed unexpectedly.

Honestly, before trying to run pubsub, I wrote an app of my own and tried to get that to run but I kind of faced the same problem except that the error message there was "noclassdeffounderror".

I'm posting also the output of my logcat. If anything else is needed, please let me know.

Thank you so much.

04-09 10:46:29.213: W/ActivityThread(333): Application org.ros.tutorials.pubsub is waiting for the debugger on port 8100...
04-09 10:46:29.233: I/System.out(333): Sending WAIT chunk
04-09 10:46:29.944: I/dalvikvm(333): Debugger is active
04-09 10:46:30.043: I/System.out(333): Debugger has connected
04-09 10:46:30.043: I/System.out(333): waiting for debugger to settle...
04-09 10:46:30.254: I/System.out(333): waiting for debugger to settle...
04-09 10:46:30.453: I/System.out(333): waiting for debugger to settle...
04-09 10:46:30.654: I/System.out(333): waiting for debugger to settle...
04-09 10:46:30.854: I/System.out(333): waiting for debugger to settle...
04-09 10:46:31.073: I/System.out(333): waiting for debugger to settle...
04-09 10:46:31.275: I/System.out(333): waiting for debugger to settle...
04-09 10:46:31.478: I/System.out(333): waiting for debugger to settle...
04-09 10:46:31.681: I/System.out(333): waiting for debugger to settle...
04-09 10:46:31.884: I/System.out(333): debugger has settled (1393)
04-09 10:46:32.143: W/dalvikvm(333): VFY: unable to find class referenced in signature (Lorg/ros/node/NodeMainExecutor;)
04-09 10:46:32.153: I/dalvikvm(333): Could not find method org.ros.RosCore.newPrivate, referenced from method org.ros.android.tutorial.pubsub.MainActivity.init
04-09 10:46:32.153: W/dalvikvm(333): VFY: unable to resolve static method 115: Lorg/ros/RosCore;.newPrivate ()Lorg/ros/RosCore;
04-09 10:46:32.153: D/dalvikvm(333): VFY: replacing opcode 0x71 at 0x0000
04-09 10:46:32.153: D/dalvikvm(333): VFY: dead code 0x0003-0035 in Lorg/ros/android/tutorial/pubsub/MainActivity;.init (Lorg/ros/node/NodeMainExecutor;)V
04-09 10:46:32.163: I/dalvikvm(333): Failed resolving Lorg/ros/android/views/RosTextView; interface 141 'Lorg/ros/node/NodeMain;'
04-09 10:46:32.163: W/dalvikvm(333): Link of ...
(more)
edit retag flag offensive close merge delete

Comments

Just to clarify, have have you followed the documentation here?

http://docs.rosjava.googlecode.com/hg/android_core/html/index.html

damonkohler gravatar image damonkohler  ( 2012-04-17 22:43:06 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-03-11 06:45:25 -0500

dberm22 gravatar image

updated 2013-03-12 02:14:29 -0500

Your error starts here:

04-09 10:58:24.915: E/AndroidRuntime(343): java.lang.RuntimeException: Unable to start activity ComponentInfo{org.ros.tutorials.pubsub/org.ros.android.tutorial.pubsub.MainActivity}: android.view.InflateException: Binary XML file line #7: Error inflating class org.ros.android.views.RosTextView

If you notice, you have both "org.ros.tutorials.pubsub" and "org.ros.tutoral.pubsub". (notice the extra/lack-of "s" in tutorials). Check to see if your spelling is correct.

Also, check the manifest to see if everything is in there and spelled correctly.

But I agree, first make sure you followed the instructions first: http://docs.rosjava.googlecode.com/hg/android_core/html/index.html

--Edit--

I may be completely wrong with this next part, but you have

04-09 10:58:24.684: I/dalvikvm(343): Failed resolving Lorg/ros/android/NodeRunnerService; interface 142 'Lorg/ros/node/NodeMainExecutor;'

Is it supposed to be "org" or "Lorg"?

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-04-10 16:18:38 -0500

Seen: 467 times

Last updated: Mar 12 '13