Error: Activity used to start app doesn’t exist or cannot ve launched!
来源:互联网 发布:mac需要清理软件吗 编辑:程序博客网 时间:2024/05/29 18:00
appium报错:
error: Failed to start an Appium session, err was: Error: Activity used to start app doesn't exist or cannot ve launched! Make usre it exists and is launchable activity
解决办法:
1.分析:包名错误
2.使用如下命令获取正确的包名:
(1).adb shell
(2).dumpsys activity | grep mFocusedActivity
3.结果如下:
mFocusedActivity: ActivityRecord{23fcaca u0 com.zui.calculator/.Calculator t438}
其中,“com.zui.calculator”为所需要的包名。
附录:
通过反编译也能获取到包名:
1.使用命令如下:
(1).adb install xxx.apk
(2).aapt dump badging xxx.apk
注:xxx.apk为待测apk完整路径。
本文参考链接:
1.大神:tpnet
http://blog.csdn.net/niubitianping/article/details/52624417
2.大神:zoraliu
http://www.cnblogs.com/zoraliu66/p/6530336.html
在此感谢大神们的分享!
阅读全文
0 0
- Error: Activity used to start app doesn’t exist or cannot ve launched!
- appium Activity used to start app doesn't exist or cannot be launched 问题解决
- Appium Desktop-启动异常Activity used to start app doesn't exist or cannot be launched!
- 《Appium学习中遇到的问题》之“运行脚本时报错:Activity used to start app doesn't exist or cannot be launched!”
- Hibernate ERROR: Table doesn't exist
- uchome 消息 Error:Table 'ucenter.uc_pms' doesn't exist
- ERROR 1146 (42S02): Table 'mysql.slow_log' doesn't exist
- Database ERROR:Table 'snort.acid_ag' doesn't exist
- MySQL [ERROR] Table 'mysql.user' doesn't exist
- ERROR 1146 (42S02): Table 'mysql.slow_log' doesn't exist
- ERROR 1146 (42S02): Table 'mysql.slow_log' doesn't exist
- mysql error:Table 'performance_schema.session_variables' doesn't exist
- ERROR 1146 (42S02): Table 'voucherdb.fvr_vouchersummary' doesn't exist
- ERROR 1146 (42S02): Table 'performance_schema.session_variables' doesn't exist
- ERROR 1146 (42S02): Table 'eip_fileservice.t_document_file' doesn't exist
- ERROR 1146 (42S02): Table 'eip_fileservice.t_document_file' doesn't exist
- [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist
- [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
- 1073. 多选题常见计分法(20)
- eclipse中解决svn连接时数字证书问题
- oracle中视图的创建和使用
- SpringMVC中文件上传后表单其他属性为空
- Python中的序列化以及pickle和json模块介绍
- Error: Activity used to start app doesn’t exist or cannot ve launched!
- Python 错误之函数takes 0 positional arguments but 1 was given
- JPush极光推送代码(已弃用,请参照另一篇)
- AJAX请求参数数组解决办法
- C++函数传参问题
- Spark 2.0核心技术图解
- 解决gradle管理依赖中 出现servlet-api.jar冲突的问题。
- 定时删除超期文件(windows+linux)
- Dockerfile-自创docker镜像(一)