为了获取 toast 信息,加了 ['automationName']='UiAutomator2'之后总是报错

来源:1-19 如何获取tost元素

慕粉1224429473

2018-11-17

你好,我使用android 5.1的设备和appium-desktop,在desired_caps里面加入[‘automationName’]='UiAutomator2’之后报错,提示“Original error: Could not find aapt Please set the ANDROID_HOME environment variable with the Android SDK root directory path.”,连app也启动不起来,如果去掉[‘automationName’]='UiAutomator2’正常启动app运行脚本

写回答

1回答

Mushishi

2018-11-17

Original error: Could not find aapt Please set the ANDROID_HOME environment variable with the Android SDK root directory path   你android home的环境变量设置了么?

0
1
慕粉1224429473
你好,找到原因了,我自己起的名字叫SDK_HOME,把名字改成ANDROID_HOME就可以了……
2018-11-17
共1条回复

Python主讲移动端自动化测试框架Appium

APP自动化基础知识、po模型、关键字模型、服务自动化、持续集成

1508 学习 · 1333 问题

查看课程