图中1的获取--'platformName'、'platformVersion'
点击appium右上角的运行按钮,可通过上面查看platformName 和 platformVersion
平台版本这边填写的是API的版本,用最新版的 AppiumDesktop运行时一直报下面的错误:
An unknown server-side error occurred while processing the command. Original error: Unable to find an active device or emulator with OS 23. The following are available: M************O (5.1.1)
这时候将平台版本改为“5.1.1”后再次运行,结果正常.
图中2的获取--appActivity
appActivity的获取:
Cmd-->adb shell-->dumpsys package <包名>
或者
appPac