您可以通过使用以下命令在正常屏幕大小的虚拟设备上启动Appium Inspector来解决此问题:
adb shell wm size reset && adb shell wm density reset
或您可以在代码中使用以下命令:
String command = "adb shell wm size reset && adb shell wm density reset"; Runtime.getRuntime().exec(command);
上一篇:AppiumInspector报错:“原始错误:应用程序包标识符'xxxx'未知。
下一篇:AppiumInspector出现以下错误:Failedtocreatesession.Anunknownserver-sideerroroccurredwhileprocessingthecommand.Originale。