appium运行,报POST /wd/hub/session 500,为啊提示错误Could not find a driver for platformName 'Android啊

刚开始接触代码,好多报错都看不懂,所以会浪费很多时间在找错,网上搜了很多资料也不知道到底是哪里有问题,谁能帮忙看看,非常感谢

img

appium的Remote必须接受这2个参数,command_executor:访问接口,desired_capabilities:测试机的一些参数
你的问题是 检查desired_capabilities这个参数

casp = {
    "platformName": "android",
    "platformVersion": "7.1.2",
    "app": r"E:\app_webview_debug.apk"

}
dirver = Remote(command_executor='http://127.0.0.1:4723/wd/hub', desired_capabilities=casp)


你把报错代码复制发出来