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

Rosmater Chooser Problem

asked 2015-03-13 16:06:24 -0500

Anis gravatar image


I have created a new Android Studio then I added all needed dependency of android_core and rosjava_core in my project and updated the manifest. I wanted to execute the pub_sub tutorial code in my newly created project. All works fine, the code compile with no problem.

However, when I upload the code to the mobile phone, I always get an Exception as follows:

03-13 23:55:05.658 25522-25522/ E/AndroidRuntime﹕ FATAL EXCEPTION: main Process:, PID: 25522 java.lang.RuntimeException: Unable to start activity ComponentInfo{}: java.lang.NullPointerException at at at$900( at$H.handleMessage( at android.os.Handler.dispatchMessage( at android.os.Looper.loop( at at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke( at$ at at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.NullPointerException at at at at             at             at$900(             at$H.handleMessage(             at android.os.Handler.dispatchMessage(             at android.os.Looper.loop(             at             at java.lang.reflect.Method.invokeNative(Native Method)             at java.lang.reflect.Method.invoke(             at$             at             at dalvik.system.NativeStart.main(Native Method) 03-13 23:55:08.333 25522-25522/ I/Process﹕ Sending signal. PID: 25522 SIG: 9

I do not know why MasterChooser always java.lang.NullPointerException. The same code work fine in a project that I created inside android_core folder itself. But it does not execute on the folder of my project that is outside android_core folder, although I imported all dependencies and also the code compiles fine with no problem.

Any help will be appreciated Anis

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2020-01-20 12:47:21 -0500

ielson gravatar image

Hey, have you ever found out a solution to this problem? I'm facing the same issue here

edit flag offensive delete link more

Question Tools


Asked: 2015-03-13 16:06:24 -0500

Seen: 657 times

Last updated: Mar 13 '15