vue.js - Environment variable $ANDROID_HOME not found !(macOS)
Susan Sarandon2017-06-08 11:02:50
0
1
879
The sdk environment variable has been configured correctly and adb is available, but this error is still prompted? Please tell me what's going on? Also, does this have something to do with using sudo to create a project?
echo $ANDROID_HOME outputs the android_home path to confirm whether it is set. If not, edit /etc/environment and add ANDROID_HOME=/path/to/android/sdk Execute source /etc/environment in the current session to ensure it takes effect
echo $ANDROID_HOME outputs the android_home path to confirm whether it is set.
If not, edit /etc/environment and add ANDROID_HOME=/path/to/android/sdk
Execute source /etc/environment in the current session to ensure it takes effect