i\'m working on an Android app project and it is a Maven project. when i try to run as \"maven install\" this is what i get:
\"Failed to execute goal com.jayway.maven.pl
If you are using Linux, exporting the ANDROID_HOME
in the .bashrc
may not work.
export ANDROID_HOME=/home/toro/etc/android-sdk-linux
For me it works only when I export ANDROID_HOME
in the /etc/environment
file like this:
ANDROID_HOME=/home/toro/etc/android-sdk-linux
You have to restart the computer to get it works.
You simply have to log out, and log in again for the environment variable to be applied system-wide. Optionally, you could just source it locally to test it out before you do that: $source /etc/environment