Appium启动会话问题:Error: Intent matches multiple activities; can't stop: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 }'; Code: '1'

请问如何解决如下问题:
报错信息:
An unknown server-side error occurred while processing the command. Original error: Cannot start the ‘com.vonedao.test’ application. Visit https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md for troubleshooting. Original error: Error executing adbExec. Original error: ‘Command ‘D:\Android\sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell am start -W -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000’ exited with code 1’; Stderr: ‘Error: Intent matches multiple activities; can’t stop: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 }’; Code: ‘1’

  • 根据报错提示,你填写的activity和package匹配到了多个结果,无法同时启动,所以报错了。建议检查一下启动参数看看是不是匹配你想要启动的app