Ask Your Question

Problem installing android_core on Ubuntu 14.04, ROS indigo

asked 2015-10-06 04:54:38 -0500

samiSH gravatar image

Hi, I am trying to install android_core ... but im getting an error .... here is some background info

I had already installed Android Studio on Ubuntu 14.04 ... the full studio and not the stand alone SDK .... and it is working fine, but only from the IDE, and not in combination with ROS (I was still learning Android) .. everything works just fine now .. updates, using app in the phone, using app in the emulator, deployment, everything.

I also had already installed ROS indigo ... and also everything works just fine .. i also have my Turtlebot, and all its apps and related packages works just fine as well .. through launches or romocon

NOW .. i want to combine them both .. that is develop Android apps for ROS .. so i following the installation instructions on this link ... here is wht i did:

1. Prerequisites:

Since i already have Android Studio & Java JDK .. it was just a matter of setting the env to the installation locations ... here is what i put in the .bashrc

 export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/jre

export PATH=${PATH}:~/Android/Sdk/tools:~/Android/Sdk/platform-tools:~/android-studio/bin

export ANDROID_HOME=~/android-studio

"Yes ... these locations are weird .. but this is where i had already installed my Android Studio ... will this cause a problem?"

2. Source Installation of Java

I followed the instructions on this link "3.1 - Core installation" .. and it worked just fine

3. Source Installation of android_core:

I followed the instructions on this link "4.1 - Core Installation" ... and here is where the problems started ... all went well till the last command ... here is what happened:

samihajjaj@sami:~/android_core$ catkin_make
Base path: /home/samihajjaj/android_core
Source space: /home/samihajjaj/android_core/src
Build space: /home/samihajjaj/android_core/build
Devel space: /home/samihajjaj/android_core/devel
Install space: /home/samihajjaj/android_core/install
#### Running command: "make cmake_check_build_system" in "/home/samihajjaj/android_core/build"
#### Running command: "make -j4 -l4" in "/home/samihajjaj/android_core/build"

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':android_15'.
> Could not resolve all dependencies for configuration ':android_15:_debugCompile'.
   > Could not find
     Searched in the following locations:
         file:/home ...
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-10-06 23:19:53 -0500

samiSH gravatar image

updated 2015-10-06 23:52:52 -0500

well .. I found the solution to the problem above .. apparently ... and for some reason that i do not know yet .. catkin was looking at the wrong places to where the support files were ... so to solve the problem above .. ull need to define a new env. variable in ur bash file .. that variable will tell catkin where the support files are on ur system .. here is how:

in ur .bashrc file ... add either one the following lines below ..

export ROS_MAVEN_REPOSITORY=(location to where the support files are on ur system)

export ROS_MAVEN_PATH=(location to where the support files are on ur system)

either line will do the trick as catkin will first look for the ROS_MAVEN_REPOSITORY variable, then the ROS_MAVEN_PATH ... and it doesnt really hurt to put them both

NOTE: I cant chose my own answer as correct because i dont have enough points

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-10-06 03:36:38 -0500

Seen: 963 times

Last updated: Oct 06 '15