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

后端 未结 6 1832
野的像风
野的像风 2020-12-31 05:01

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

6条回答
  •  傲寒
    傲寒 (楼主)
    2020-12-31 05:59

    One source of this problem comes from sudo. If you're sure you've set $ANDROID_HOME correctly then try the following:

    sudo visudo
    

    then add

    Defaults    env_keep += "ANDROID_HOME"
    

提交回复
热议问题