0
$\begingroup$

Rosanswers logo

Hi,

I followed the instructions on the webpage(http://docs.rosjava.googlecode.com/hg/rosjava_core/html/index.html and http://docs.rosjava.googlecode.com/hg/android_core/html/index.html) to download, install and build rosjava and android_core on my computer. I got 100% "BUILD SUCCESSFUL" except a bunch of warnings while building android_tutorial_% package. The warning all look like these:

[dx] warning: Ignoring InnerClasses attribute for an anonymous inner class
[dx] (jnamed$1) that doesn't come with an
[dx] associated EnclosingMethod attribute. This class was probably produced by a
[dx] compiler that did not target the modern .class file format. The recommended
[dx] solution is to recompile the class from source, using an up-to-date compiler
[dx] and without specifying any "-target" type options. The consequence of ignoring
[dx] this warning is that reflective operations on this class will incorrectly
[dx] indicate that it is *not* an inner class.

Also, when I import the android_tutorial_image_transport into eclipse, I can not launch it in the emulator and got the following errors:

E/AndroidRuntime(428): FATAL EXCEPTION: main

E/AndroidRuntime(428): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{org.ros.android.android_tutorial_image_transport/org.ros.android.android_tutorial_image_transport.MainActivity}: java.lang.ClassNotFoundException: org.ros.android.android_tutorial_image_transport.MainActivity in loader dalvik.system.PathClassLoader[/data/app/org.ros.android.android_tutorial_image_transport-1.apk]

E/AndroidRuntime(428):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1569)
E/AndroidRuntime(428):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
E/AndroidRuntime(428):  at android.app.ActivityThread.access$1500(ActivityThread.java:117)
E/AndroidRuntime(428):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
E/AndroidRuntime(428):  at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(428):  at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(428):  at android.app.ActivityThread.main(ActivityThread.java:3683)
E/AndroidRuntime(428):  at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(428):  at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime(428):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
E/AndroidRuntime(428):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
E/AndroidRuntime(428):  at dalvik.system.NativeStart.main(Native Method)

E/AndroidRuntime(428): Caused by: java.lang.ClassNotFoundException: org.ros.android.android_tutorial_image_transport.MainActivity in loader dalvik.system.PathClassLoader[/data/app/org.ros.android.android_tutorial_image_transport-1.apk]

E/AndroidRuntime(428):  at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
E/AndroidRuntime(428):  at java.lang.ClassLoader.loadClass(ClassLoader.java:551)
E/AndroidRuntime(428):  at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
E/AndroidRuntime(428):  at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
E/AndroidRuntime(428):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1561)
E/AndroidRuntime(428):  ... 11 more

Originally posted by ira on ROS Answers with karma: 106 on 2012-05-19

Post score: 1

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

It turned out that there is a error that is not explicitly shown in the main.xml file, in which

org.ros.android.views.RosImageView

should be changed to

org.ros.android.view.RosImageView

But about the warning, I still hasn't figured it out.


Originally posted by ira with karma: 106 on 2012-05-20

This answer was ACCEPTED on the original site

Post score: 0


Original comments

Comment by damonkohler on 2012-05-21:
The warning can be safely ignored.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.