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的解决办法,布布扣,bubuko.com

时间: 2024-10-27 11:58:14

Appium运行时,error: Logcat capture failed: spawn ENOENT的解决办法的相关文章

【Appium遇到的坑】环境配置无误,路径无中文,无空格,提示error: Logcat capture failed: spawn ENOENT

代码如下,提示error: Logcat capture failed: spawn ENOENT from appium import webdriver from time import sleep desired_caps={} desired_caps['platformName']= 'Android' desired_caps['platformVersion']= '5.1.1' desired_caps['deviceName']= '127.0.0.1:62001' desir

DELPHI XE5 UP2 运行IOS 遇到 Wrapper init failed: (null)问题的解决办法

一.问题表现: 在MAC OSX(10.9.2)上安装了比较新的XCODE5.1 和COMMAND LINE TOOLS 在DELPHI XE5 UP2上放了一个按钮,输出到MAC OSX上,出现: Wrapper init failed: (null) 查看了很多大侠的博客. 二.问题的其他表现在Embarcadero的论坛上找到: 原文位置:https://forums.embarcadero.com/thread.jspa?threadID=101749&tstart=0 What doe

[ArchLinux]进行更新时出现错误:GPGME error: 无数据,数据库无效的解决办法/

今天在我进行系统更新pacman -Syu时,出现了如下错误: # pacman -Syu 错误:GPGME error: 无数据 错误:GPGME error: 无数据 错误:GPGME error: 无数据 错误:GPGME error: 无数据 错误:GPGME error: 无数据 :: 正在同步软件包数据库... core 已经是最新版本 0.0 B 0.00B/s 00:00 [----------------------] 0% extra 已经是最新版本 0.0 B 0.00B/

YUM安装提示PYCURL ERROR 6 - "Couldn&#39;t错误的解决办法

当编译PHP时出现如下错误时,找不到头绪 这时,打开DNS   vim /etc/resolv.conf   添加一行nameserver 192.168.1.1 完成上一步,则解决该问题 YUM安装提示PYCURL ERROR 6 - "Couldn't错误的解决办法

VS2012 error : Required file tracker.exe is missing 解决办法

初次使用VC2012 ,结果报告error : Required file tracker.exe is missing .从百度上搜索一遍,很多解决办法不靠谱,搜到靠谱的是英文版 连接如下: http://connect.microsoft.com/VisualStudio/feedback/details/540902 其实就是找到你的项目文件xxxx.vcxproj,使用编辑器打开,是xml格式的定义文件,查找关键字PropertyGroup 会发现有几个这样的配置,然后在这样的关键附近插

[转]关于[Linker error] undefined reference to `[email&#160;protected]&#39;的解决办法

在网上搜到的一个很完整的叙述,就直接帖过来了.如下:**************************************************** 说明: 常遇到的socket网络编程问题. 在工程里已经#include <winsock2.h>了结果还是报错,郁闷死了,我用的是Dev-C++,起先还以为是IDE的问题,结果换成VC6.0还是同样的错误.最后在网上终于找到问题的原因,很快搞定了.顺便做一下笔记,以防以后再出现这种问题. VC6.0下的错误信息: error LNK20

Error:控制传输跳过的实例化解决办法

switch红色下划线, Error:控制传输跳过的实例化解决办法 (2012-12-26 13:39:52) 转载▼ 标签: 杂谈   如下: switch(iParam1) { case 0:     CString strResult;   strResult.Format(_T("%s"), iParam2);   break;   case 1:   break; default:  break; } 会提示控制传输跳过的实例化解决办法 因为在case 0:中定义了一个变量s

remote error: You can&#39;t push to git 解决办法

remote error: You can't push to git 解决办法

BeanCreationException: Error creating bean with name &#39;classPathFileSystemWatcher&#39;之解决办法

错误关键信息: BeanCreationException: Error creating bean with name 'classPathFileSystemWatcher' 错误原因:Idea不支持热加载,application-test.yml中的热加载配置去除后,就能正常启动了,对应的服务也能正常访问. 解决办法:去除热加载中的代码配置,如可修改为这样: devtools: restart: enabled: true # additional-paths: src/main/java