Building android_core [closed]
Hello from ruifei0713,
I am using the following website to install and build android_core: http://docs.rosjava.googlecode.com/hg/android_core/html/building.html
I have done everything beforehand including installing and building rosjava_core.
I am on the line ./gradlew debug.
When I run ./gradlew debug, I get an error that reads:
Execution failed for task ':android_acm_serial_updateProject'.
A problem occurred starting command 'android'
However, I do not have a problem running the command "android" (which opens the Android SDK Manager) and it is in my working PATH as defined in my ./bashrc file. This is my export command putting android in the PATH:
export PATH=${PATH}:/home/ruifei0713/Documents/android-sdk-linux/tools:/home/ruifei0713/Documents/android-sdk-linux/platform-tools
When I run ./gradlew debug --stacktrace, there is a line that reads:
Caused by: java.io.IOException: Cannot run program "android" (in directory "/home/ruifei0713/my_workspace/android_core/android_acm_serial"): java.io.IOexception: error=2, No such file or directory
I'm not quite sure if this line is significant, but I guessed that gradlew was looking for the android executable in the wrong directory (i.e. "/home/ruifei0713/my_workspace/android_core/android_acm_serial"). However, that wasn't the case because I put a symlink in that directory and the same error appeared.
Is there any other solution to this problem or something that I'm missing?
Thanks so much!
This seems very strange. If 'android' is in your path and you're able to execute it from your shell, this should not happen.
Have you resolved this issue?
Can you actually open the SDK manager? If not this sort of behavior is often caused by the lack of 32-bit compatibility libraries on a 64-bit system.