appium 测试换了一个新的 apk 包,activity 在列表中不存在
这个包我查找了它的 activity-name
在脚本中我也指定了
desired_caps['appPackage'] = 'com.juchaozhi'
desired_caps['appActivity'] = 'cn.juchaozhi.launcher.LauncherActity_'
运行,appium 中报错:
info: [debug] Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Activity used to start app doesn't exist or cannot be launched! Make sure it exists and is a launchable activity)","origValue":"Activity used to start app doesn't exist or cannot be launched! Make sure it exists and is a launchable activity"},"sessionId":null}
找了一些资料,说是 appium 中不用设置,只是脚本中设置即可,但我这里测试的结果明显不行!
具体原因不知道为什么,只是第二天再打开 appium 就 OK 了。