51Testing软件测试论坛

标题: Day3-4测试积点任务 [打印本页]

作者: 测试积点老人    时间: 2018-6-19 10:06
标题: Day3-4测试积点任务
问题:
The ANDROID_HOME environment variable is not set to the Android SDK
如题问题就是标题:


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.


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


报错信息:
  1. <div><font face="微软雅黑" size="3">[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.</font></div><div><font face="微软雅黑" size="3">[debug] [AndroidDriver] Shutting down Android driver</font></div><div><font face="微软雅黑" size="3">[debug] [AndroidDriver] Called deleteSession but bootstrap wasn't active</font></div><div><font face="微软雅黑" size="3">[debug] [BaseDriver] Event 'newSessionStarted' logged at 1529032160765 (11:09:20 GMT+0800 (CST))</font></div><div><font face="微软雅黑" size="3">[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.</font></div><div><font face="微软雅黑" size="3">[W3C] at ADB.callee$0$0$ (../../../lib/tools/system-calls.js:124:11)</font></div><div><font face="微软雅黑" size="3">[W3C] at tryCatch (/usr/local/lib/node_modules/appium/node_modules/_babel-runtime@5.8.24@babel-runtime/regenerator/runtime.js:67:40)</font></div><div><font face="微软雅黑" size="3">[W3C] at GeneratorFunctionPrototype.invoke as _invoke</font></div><div><font face="微软雅黑" size="3">[W3C] at GeneratorFunctionPrototype.prototype.(anonymous function) as throw</font></div><div><font face="微软雅黑" size="3">[W3C] at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/_babel-runtime@5.8.24@babel-runtime/regenerator/runtime.js:136:37)</font></div><div><font face="微软雅黑" size="3">[W3C] at</font></div>
复制代码




作者: qqq911    时间: 2018-6-20 10:26
The ANDROID_HOME environment variable is not set to the Android SDK root directory path

根据报错信息,是环境变量设置的问题
作者: abcsell    时间: 2018-6-20 10:55
The ANDROID_HOME environment variable is not set to the Android SDK root directory path

根据报错信息,是环境变量设置的问题
作者: jingzizx    时间: 2018-6-20 12:50
环境变量还是有问题,本地和SDK配置应该不一样
作者: 海海豚    时间: 2018-6-20 13:08

环境变量还是有问题,本地和SDK配置应该不一样
作者: 梦想家    时间: 2018-6-20 13:17
The ANDROID_HOME environment variable is not set to the Android SDK root directory path

根据报错信息,是环境变量设置的问题




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2