Error: ANDROID_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions

CMP

I am MAC OS X Yosemite I have done all the export tutorial to set the android_home but non of it working for me

Valter Jansons

Making sure ANDROID_HOME is exported and adding the SDK tool directories to PATH should be more than enough to get you going.


Using the terminal

# First, we make sure we have a newline at the end of the .bash_profile
echo >> /Users/abdi/.bash_profile

# We set the ANDROID_HOME value in the .bash_profile
echo "export ANDROID_HOME=/Users/abdi/adt/sdk" >> /Users/abdi/.bash_profile

# We alter the PATH value a bit as well
echo "export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools" >> /Users/abdi/.bash_profile

# We then tell the terminal to update all the things
. /Users/abdi/.bash_profile

Using a GUI (mostly)

You can also open the .bash_profile file in TextEdit using the open -e /Users/abdi/.bash_profile command. If you get some errors about missing files, try running touch /Users/abdi/.bash_profile and retry the open command. In the file that opens, add the following lines at the end.

export ANDROID_HOME=/Users/abdi/adt/sdk
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools

Running . /Users/abdi/.bash_profile as in the terminal version after that should get you fully set up.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Error: ANDROID_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions.

ANDROID_HOME is not set and "android" command not in your PATH Phonegap

Error: ANDROID_HOME is not set and "android" command not in your PATH on OS X

Configuration error: You must configure at least one set of arguments for this @ParameterizedTest

ANDROID_HOME Path Set But Not Being Read

Cordova run android : ANDROID_HOME not set and android not in my path

Vagrant Provision, Chef Error: You must specify at least one cookbook repo path

Symfony Error : RuntimeException Your configuration must have at least one domain

taking ANDROID_HOME PATH error while building cordova project

JAVA_HOME is not set and no 'java' command could be found in your PATH (Android Studio)

gomobile command error " No android NDK path is set "

Junit Configuration error: You must provide at least one argument for this @ParameterizedTest

phonegap build android: ANDROID_HOME is set to a non-existent path

Could not find adb Please set the ANDROID_HOME environment variable with the Android SDK root directory path

Cordova build android - error: android sdk not found (but is installed and ANDROID_HOME set correctly on OS X)

"zsh: command not found: adb" after adding ANDROID_HOME and PATH variables to .zshrc

Jest is failed to running with Mock files with Error Message Your test suite must contain at least one test

Cordova using the wrong path for "ANDROID_HOME"

Set ANDROID_HOME environment variable in mac

Do you need a privacy policy and terms/conditions for your android app?

Junit5 Error. You must provide at least one argument for this @ParameterizedTest

How to solve Prometheus configuration error: file service discovery config must contain at least one path name

Yarn ERROR: There are no scenarios; must have at least one

Android Studio: You must specify a path to Genymotion folder to use this feature

Meteor: ANDROID_HOME is not set even though it is set

Flutter can't find ANDROID_HOME path

(rootProject/*:bintrayEnsureLicenses) you must define at least one license for this project

PHPMailer: You must provide at least one recipient email address

Android: "Path for project must have only one segment"