Stack Overflow is a community of 4.7 million programmers, just like you, helping each other.

Join them; it only takes a minute:

Sign up
Join the Stack Overflow community to:
  1. Ask programming questions
  2. Answer and help your peers
  3. Get recognized for your expertise

I created mobile application with Ionic. I want build application and I've a problem, I try build application on Vagrant but I get response error.

ERROR: Error: Failed to find 'ANDROID_HOME' environment variable. Try setting setting it manually. Failed to find 'android' command in your 'PATH'. Try update your 'PATH' to include path to valid SDK directory

My .profile:

export ANDROID_HOME="/usr/local/android-sdk-linux/tools" export ANDROID_PLATFORM_TOOLS="/usr/local/android-sdk-linux/platform-tools" export PATH="$PATH:$ANDROID_HOME:$ANDROID_PLATFORM_TOOLS" ANDROID_HOME=/opt/android-sdk-linux ANDROID_PLATFORM_TOOLS=/opt/android-sdk-linux/platform-tools PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/u$ ANDROID_SDK=/opt/android-sdk-linux

How fix? Any ideas?

share|improve this question

I think you may try this

export ANDROID_HOME=/installation-location/android-sdk-linux

export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools

Look to the source for more details

share|improve this answer
    
Your advice not fixed. Still that error – Matrix12 Nov 22 '15 at 18:00

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.