shirkerby 发表于 2018-6-15 12:23:20

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=".$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.

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

报错信息:
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.
Shutting down Android driver
Called deleteSession but bootstrap wasn't active
Event 'newSessionStarted' logged at 1529032160765 (11:09:20 GMT+0800 (CST))
Encountered internal error running command: Error: Could not find adb Please set the ANDROID_HOME environment variable with the Android SDK root directory path.
at ADB.callee$0$0$ (../../../lib/tools/system-calls.js:124:11)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/_babel-runtime@5.8.24@babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke as _invoke
at GeneratorFunctionPrototype.prototype.(anonymous function) as throw
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/_babel-runtime@5.8.24@babel-runtime/regenerator/runtime.js:136:37)
at

页: [1]
查看完整版本: The ANDROID_HOME environment variable is not set to the Android SDK