catkin_create_android_project throws error
I tried to create a custom ROS-Android package as described in the tutorial Creating Android Packages. Unfortunately, the command catkin_create_android_project -t 10 -p com.github.ros_java.android_foo.bar bar
fails with this error:
[error] [Errno 2] No such file or directory : <type 'exceptions.OSError'>
Can anyone help me with this problem? My current workaround is to copy an existing example project.
ROS distro: Indigo; rosjavacore version: 0.2.1 (installed from debs); rosjavabuildtools version: 0.2.3 (installed from debs); androidcore version: 0.2.0 (compiled from source)
Asked by Tones on 2015-06-03 11:45:19 UTC
Answers
This is because catkin_create_android_project actually calls android create project to create a ros_android project, you see the no such file error because catkin_create_android_project can not find the android script, what you need to do is add a PATH env varible.
If you use Linux and bash, you need to add something to the .bashrc like this: PATH="WHAT_IS_ALREADY_THERE:YOUR_ANDROID_SCRIPT_PATH" and then source .bashrc in terminal.
Normally, the android script is at YOUR_SDK_ROOT/tools.
Asked by JellyLD on 2016-03-15 09:47:49 UTC
Comments
Thank you! This worked for me!
Asked by ErivaldoJunior on 2016-08-10 10:19:40 UTC
Comments
Did you find any more permanent sollution to this?
Asked by smihael on 2015-08-16 04:26:44 UTC
Unfortunately not, so far. I am still using the workaround.
Asked by Tones on 2015-08-19 10:28:58 UTC