android_home is not set mac,[ADB] The ANDROID_HOME environment variable is not set to the Android SD...

如题问题就是标题:

1.环境变量已设置,adb devices、appium-doctor 正常执行无误。

2.mac 系统 10.11.6

3.在 mac 下命令行可正常找到以上命令

4.本人用 spring tool suite 开发工具,简称 sts、报出以上错误。

5.配置环境变量位置 :cat /etc/profile

6.配置如下:

ANDROID_HOME=/Users/damo/Downloads/sdk

export ANDROID_HOME

PATH=".$PATH:$GRADLE_HOME/bin:$ANT_HOME/bin:$ANDROID_HOME/tools:$ANDROID_HOME/platform-

tools:$JAVA_HOME/bin:$ANDROID_HOME/tools/bin:$REDIS_HOME"

7.框架为 java+appium+testng.

请高手帮忙指点下。。。。。已困扰好几天的问题。。。。。具体排错流程有没有好的建议。感谢!!!

报错信息:

[ADB] The ANDROID_HOME environment variable is not set to the Android SDK root directory path. ANDROID_HOME is required for compatibility with SDK 23+. Checking along PATH for adb.

[debug] [AndroidDriver] Shutting down Android driver

[debug] [AndroidDriver] Called deleteSession but bootstrap wasn't active

[debug] [BaseDriver] Event 'newSessionStarted' logged at 1529032160765 (11:09:20 GMT+0800 (CST))

[W3C] Encountered internal error running command: Error: Could not find adb Please set the ANDROID_HOME environment variable with the Android SDK root directory path.

[W3C] at ADB.callee$0$0$ (../../../lib/tools/system-calls.js:124:11)

[W3C] at tryCatch (/usr/local/lib/node_modules/appium/node_modules/_babel-runtime@5.8.24@babel-runtime/regenerator/runtime.js:67:40)

[W3C] at GeneratorFunctionPrototype.invoke as _invoke

[W3C] at GeneratorFunctionPrototype.prototype.(anonymous function) as throw

[W3C] at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/_babel-runtime@5.8.24@babel-runtime/regenerator/runtime.js:136:37)

[W3C] at

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值