search

Home  >  Q&A  >  body text

vue.js - Environment variable $ANDROID_HOME not found !(macOS)

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?

淡淡烟草味淡淡烟草味2766 days ago983

reply all(1)I'll reply

  • 仅有的幸福

    仅有的幸福2017-06-08 11:04:50

    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

    reply
    0
  • Cancelreply