Skip to content Skip to sidebar Skip to footer

Error: Failed To Find 'android_home' Environment Variable

When i am running ionic app i am getting android home setting error. Here is my full commands and their output sudo ionic run android Running command: /home/manish/do_practice/ioni

Solution 1:

Please reload your bashrc by using this command:

source ~/.bashrc

Solution 2:

"build-tools" directory is missing in your PATH. Remove both "export" lines from your .bashrc file and copy this:

export PATH=$PATH:/home/manish/Android/Sdk/platform-tools:/home/manish/Android/Sdk/tools:/home/manish/Android/Sdk/build-tools

Solution 3:

try to set tools as well, try following code ,edit this android sdk path to yours,

export ANDROID_HOME=/Users/Mac/Desktop/mac/android-sdk-macosx
PATH=$PATH:$ANDRIOD_HOME/tools
PATH=$PATH:$ANDRIOD_HOME/platform-tools

Post a Comment for "Error: Failed To Find 'android_home' Environment Variable"