访问被拒绝,你可能没有权限或未登录,或者你还在新人期。
    
  
    
      
      
        
        环境:Mac 系统
环境变量:在.bash_profile、/etc/profile 两个文件中都设置了 ANDROID_HOME 环境变量路径,但是使用 appium.app 程序 doctor 检查时却提示没有设置 ANDROID_HOME

如上图:
左边的是执行 appium-doctor 命令,正常。
右边的是点击 appium.app 程序中的 doctor,为什么不识别 ANDROID_HOME 呢?
问题已经解决;
我用的是 zsh. 配置了.zshrc 后,ok 了。谢谢各位。
        
       
      
     
    
      
      
      
        
        
              
    
    
    
    
    
      
          
          
            
            
            
              #2 楼 @michael_wang 
appium.app 程序 doctor 检查时却提示没有设置 ANDROID_HOME?
- check what shell you use? echo $SHELLin the pop up terminal when appium doctor
- check whether the ANDROID_HOME is set in the shell you use 
 
           
       
     
    
    
      
          
          
            
            
            
              #3 楼 @lihuazhang 谢谢,我用的是 zsh. 配置了.zshrc 后,ok 了。
为什么在终端里面用的也是 zsh,为什么就可以?我还是没有理清这个关系。
             
           
       
     
    
    
    
    
    
    
      
          
          
            
            
            
              在家目录下创建.bash_profile 文件,里面写上 $ANDROID_HOME 和 $JAVA_HOME,然后 source .bash_profile 就可以了