51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

查看: 1408|回复: 0
打印 上一主题 下一主题

The ANDROID_HOME environment variable is not set to the Android SDK

[复制链接]
  • TA的每日心情

    2018-6-15 14:44
  • 签到天数: 4 天

    连续签到: 1 天

    [LV.2]测试排长

    跳转到指定楼层
    1#
    发表于 2018-6-15 12:23:20 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
    如题问题就是标题:

    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=".$PATHGRADLE_HOME/binANT_HOME/binANDROID_HOME/toolsANDROID_HOME/platform-

    toolsJAVA_HOME/binANDROID_HOME/tools/binREDIS_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

    分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
    收藏收藏
    回复

    使用道具 举报

    本版积分规则

    关闭

    站长推荐上一条 /1 下一条

    小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

    GMT+8, 2024-5-8 13:01 , Processed in 0.061489 second(s), 23 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

    快速回复 返回顶部 返回列表