使用计算器会话打开 Appium Inspector 时出现问题
Problem In Opening Appium Inspector with calculator seesion
"deviceName": "Moto C Plus",
"udid": "ZZ2222MGJM",
"platformName": "Android",
"platformVersion": "7.0",
"appPackage": "com.google.android.calculator",
"appActivity": "com.android.calculator2.Calculator"
当点击 startSession 按钮时
错误:
错误
处理命令时发生未知的服务器端错误。原始错误:zipAlignApk 失败。原始错误:命令 'C:\Users\ANIL\Desktop\android-sdk\platform-tools\zipalign.exe -f 4 C:\Users\ANIL\AppData\Local\Temp191017-3868-paf3kz.h4yu\appium-uiautomator2-server-debug-androidTest.apk C:\Users\ANIL\AppData\Local\Temp191017-3868-1e9g3nn.xgdch\appium.tmp' 已退出,代码为 3221225781。标准输出:'';标准错误:''
我认为您需要在此处将 automationName
参数添加到您想要的功能中。类似于:
automationName: UiAutomator1
或
automationName: UiAutomator2
您可以在 Appium 文档下阅读有关 automationName
参数的信息:http://appium.io/docs/en/writing-running-appium/caps/
它基本上告诉 Appium 使用哪个设备原生自动化框架。
"deviceName": "Moto C Plus", "udid": "ZZ2222MGJM", "platformName": "Android", "platformVersion": "7.0", "appPackage": "com.google.android.calculator", "appActivity": "com.android.calculator2.Calculator"
当点击 startSession 按钮时 错误:
错误 处理命令时发生未知的服务器端错误。原始错误:zipAlignApk 失败。原始错误:命令 'C:\Users\ANIL\Desktop\android-sdk\platform-tools\zipalign.exe -f 4 C:\Users\ANIL\AppData\Local\Temp191017-3868-paf3kz.h4yu\appium-uiautomator2-server-debug-androidTest.apk C:\Users\ANIL\AppData\Local\Temp191017-3868-1e9g3nn.xgdch\appium.tmp' 已退出,代码为 3221225781。标准输出:'';标准错误:''
我认为您需要在此处将 automationName
参数添加到您想要的功能中。类似于:
automationName: UiAutomator1
或
automationName: UiAutomator2
您可以在 Appium 文档下阅读有关 automationName
参数的信息:http://appium.io/docs/en/writing-running-appium/caps/
它基本上告诉 Appium 使用哪个设备原生自动化框架。