Appium DesKtop 配置了各项参数后,启动报错
[MJSONWP] Encountered internal error running command: Error: Error occured while starting App.
Original error: Activity used to start app doesn't exist or cannot be launched!
Make sure it exists and is a launchable activity
Original error: Activity used to start app doesn't exist or cannot be launched!
Make sure it exists and is a launchable activity
可能情况1:activity,查找错误
如何查找activity
1)确保手机和电脑已连接 adb devices
2)确保在你手机上,要测试的包启动着
3)dos运行:adb shell dumpsys activity activities >C:\Users\xxx\Desktop\aa.txt
打开C:\Users\xxx\Desktop\aa.txt文件,查找你的关键字
4)输入属性对应的值后,点击start session尝试,查看是否正确
可能情况2:如果情况1解决不了,尝试添加属性 appwaitactivity
情况1中3),打开C:\Users\xxx\Desktop\aa.txt文件,查看关键字Running activities