Appium运行时,error: Logcat capture failed: spawn ENOENT的解决办法
Appium运行的时候,查看到log输出为:
info: Welcome to Appium v1.2.0 (REV e53f49c706a25242e66d36685c268b599cc18da5)
info: Appium REST http interface listener started on 0.0.0.0:4723
debug: Non-default server args: {"deviceName":"emulator","platformName":"android
"}
info: LogLevel: debug
info: --> POST /wd/hub/session {"desiredCapabilities":{"platformVersion":"4.2","
deviceName":"emulator","platformName":"Android","appActivity":".Calculator","app
Package":"com.android.calculator2"}}
debug: Appium request initiated at /wd/hub/session
debug: Request received with params: {"desiredCapabilities":{"platformVersion":"
4.2","deviceName":"emulator","platformName":"Android","appActivity":".Calculator
","appPackage":"com.android.calculator2"}}
debug: Didn't get app but did get Android package, will attempt to launch it on
the device
debug: Creating new appium session 5d16c660-4f6e-47ad-ad5b-b6aa4c276063
info: Starting android appium
debug: Using fast reset? true
debug: Preparing device for session
debug: Not checking whether app is present since we are assuming it's already on
the device
debug: Checking whether adb is present
debug: Using adb from D:\Program Files\adt-bundle-windows\sdk\platform-tools\adb
.exe
info: Retrieving device
debug: Trying to find a connected android device
debug: Getting connected devices...
debug: executing: "D:\Program Files\adt-bundle-windows\sdk\platform-tools\adb.ex
e" devices
debug: 1 device(s) connected
info: Found device emulator-5554
debug: Setting device id to emulator-5554
debug: Waiting for device to be ready and to respond to shell commands (timeout
= 5)
debug: executing: "D:\Program Files\adt-bundle-windows\sdk\platform-tools\adb.ex
e" -s emulator-5554 wait-for-device
debug: executing: "D:\Program Files\adt-bundle-windows\sdk\platform-tools\adb.ex
e" -s emulator-5554 shell "echo 'ready'"
debug: Starting logcat capture
error: Logcat capture failed: spawn ENOENT
debug: Stopping logcat capture
info: <-- POST /wd/hub/session - - ms - -
其中的错误为:Logcat capture failed: spawn ENOENT。
经过询问大神们,得知是因为SDK的路径中含有空格造成的。我修改前的SDK路径是:D:\Program Files\adt-bundle-windows\sdk,因为Program Files中间含有一个空格造成的。然后修改了SDK路径为:D:\adt-bundle-windows\sdk。再次运行脚本,发现appium正常运行了,脚本执行成功。
Appium运行时,error: Logcat capture failed: spawn ENOENT的解决办法相关推荐
- 填坑记1-nrf52840出现error flash download failed -cortex-M4错误的解决办法-清风电子开发板
填坑类型: nrf52840出现error flash download failed -cortex-M4错误 使用板子:清风电子开发板 问题描述: keil4出错,keil5不出错(意思是其他ke ...
- java程序在运行时,总是出现冲突的错误的解决办法。
弄了很久,终于解决了,特此记录. /----------处理方式 start ----------/ 删掉.m2文件夹(C:\Users\Administrator\.m2文件夹),然后重新Rebui ...
- visual studio 2008运行时 error PRJ0003 : 生成“rc.exe”出错
问题描述:visual studio 2008运行时 error PRJ0003 : 生成"rc.exe"出错 解决方法步骤如下 :1.运行vs2008安装程序,点击 ...
- RTX20系列显卡运行网络出现cublas runtime error: the GPU program failed to execute的解决办法
RTX20系列显卡运行网络出现cublas runtime error: the GPU program failed to execute的解决办法 RTX20系列显卡运行网络出现cublas ru ...
- oracle ipc message,【案例】Oracle RAC IPC send timeout error导致RAC的节点挂起解决办法
天萃荷净 Oracle研究中心案例分析:运维DBA反映Oracle RAC环境数据库节点挂起,分享日志发现是由于IPC send timeout error导致RAC的节点挂起. 本站文章除注明转载外 ...
- 记录安装Anaconda遇到的坑:failed to create menu.解决办法(完美解决)
Anaconda和Miniconda Anaconda是一个完整的环境,它内置了很多Python常用的库和相关依赖环境,安装包体积和安装后在电脑所占用的空间都较大.为什么有两个Conda?其实两个Co ...
- curl: (25) Failed FTP upload: 550 解决办法
问题描述 今天使用 curl 调用ftp上传文件抛出一下错误 sam@sam-hp-z238:~$ curl -T /home/sam/myinstall ftp://192.168.2.48/cam ...
- Error loading native library: libnjni9.so.的解决办法
Error loading native library: libnjni9.so.的解决办法 $ netca Error loading native library: libnjni9.so. j ...
- Error: Cannot find module ‘webpack-cli/bin/config-yargs‘ 解决办法
在webpack配置自动打包功能的时候,执行打包命令npm run dev报错: Error: Cannot find module 'webpack-cli/bin/config-yargs' 解决 ...
最新文章
- 对 Kafka 和 Pulsar 进行性能测试后,拉卡拉将消息平台统一换成了 Pulsar
- solidity 汇编语言问题——内存数据mload时为什么从第32位开始
- (转)Invoke and BeginInvoke
- form 表单 + HTML5(FileReader) +iframe 实现无刷新图片上传+图片预览效果
- JAVA: List用法
- train,dev,test数据集作用
- python的数据类型和变量的定义及使用
- arcgis xml 下载 切片_xml格式文件如何用arcgis进行编辑和更新
- Java案例:Swing常用组件演示
- 2.5 结构化程序设计的方法
- Hadoop教程(一)
- win7中inter信息服务器,Win7系统Internet选项在哪里?
- Apriori算法通俗讲解
- 记忆翻牌游戏——react算法学习
- 隔壁孩子10篇博客node入门而且写了一个前后端分离项目,你怎么还在睡觉!!!(五)
- POJ 1436 Horizontally Visible Segments(线段树建图+枚举)
- phpadmin删除数据库中的用户
- 【GPT4】GPT4 官方报告解读
- PicPick滚屏截图
- 微信小程序新坑-文字溢出连续英文或者英文溢出 会出现字符
热门文章
- Linux系统间文件双向同步搭建Unison版
- 在mysql怎样查询地址和电话_Mysql数据查询
- qt c++ 图片预览_Qt多语言国际化
- input只能输入数字_Python基础第一个案例:猜数字游戏,这个都写不出,那就放弃吧...
- 手册如何看运放的db_如何处理金属离子与配体之间的配位键?
- 小程序开发代码_快速学会微信小程序开发,无需懂代码!
- SpringCloud Eureka服务治理
- 2020年中国职业教育行业白皮书
- 递归下降分析程序的设计与实现_递归就是这么简单
- dry的原理_速干面料的原理