android - Setting up NativeScript on Mac. "The ANDROID_HOME environment variable is not set or it points to a non-existent directory -




i'm trying started nativescript, when try run tns run android, gives me:

$ tns run android android_home environment variable not set or points non-existent directory. not able perform build-related operations android. 

i have setup android_home in ~/.bash_profile

$ echo $android_home /users/mb102/library/andriod/sdk 

this path matches what's in android studio manager, i've downloaded , setup device:

$ tns devices  connected devices & emulators searching devices... ┌───┬──────────────────────┬──────────┬───────────────────┬──────────┬───────────┐ │ # │ device name          │ platform │ device identifier │ type     │ status    │ │ 1 │ sdk_google_phone_x86 │ android  │ emulator-5554     │ emulator │ connected │ └───┴──────────────────────┴──────────┴───────────────────┴──────────┴───────────┘ 

is there more ought do?

the typo in path?

$ echo $android_home /users/mb102/library/andriod/sdk 

should be:

$ echo $android_home /users/mb102/library/android/sdk 

actually, shouldnt be:

$ export android_home=/users/mb102/library/android/sdk 




wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -