Hi All,
I am getting Logcat catpture failed error while running my appium script, there is no space in my sdk folder but still i am getting the same error.
Below is the appium logs, could anyone please help in resolving this issue.
########## Logs #######################################################################
info: [debug] Using adb from C:\Users\Admin\AppData\Local\Android\sdk\platform-
tools\adb.exe
info: [debug] Parsing package and activity from app manifest
info: [debug] Checking whether aapt is present
warn: The ANDROID_HOME environment variable is not set to the Android SDK root d
irectory path. ANDROID_HOME is required for compatibility with SDK 23+. Checking
along PATH for aapt.
info: [debug] executing cmd: where aapt
info: [debug] Using aapt from C:\Users\Admin\AppData\Local\Android\sdk\build-to
ols\21.1.2\aapt.exe
info: [debug] Extracting package and launch activity from manifest.
info: [debug] executing cmd: âC:\Users\Admin\AppData\Local\Android\sdk\build-to
ols\21.1.2\aapt.exeâ dump badging C:\APK\Chat_v1.apk
info: [debug] badging package: com.abc.fa.chat
info: [debug] badging act: com.abc.fa.chat.MainActivity
info: [debug] Parsed package and activity are: com.abc.fa.chat/com.abc.fa.chat.MainActivity
info: [debug] Set chromedriver binary as: C:\Program Files (x86)\Appium\node_mod
ules\appium\build\chromedriver\windows\chromedriver.exe
info: [debug] Using fast reset? true
info: [debug] Preparing device for session
info: [debug] Checking whether app is actually present
info: Retrieving device
info: [debug] Trying to find a connected android device
info: [debug] Getting connected devicesâŚ
info: [debug] executing cmd: âC:\Users\Admin\AppData\Local\Android\sdk\platform
-tools\adb.exeâ devices
info: [debug] 1 device(s) connected
info: Found device emulator-5554
info: [debug] Setting device id to emulator-5554
info: [debug] Waiting for device to be ready and to respond to shell commands (t
imeout = 5)
info: [debug] executing cmd: âC:\Users\Admin\AppData\Local\Android\sdk\platform
-tools\adb.exeâ -s emulator-5554 wait-for-device
info: [debug] executing cmd: âC:\Users\Admin\AppData\Local\Android\sdk\platform
-tools\adb.exeâ -s emulator-5554 shell âecho âreadyââ
info: [debug] Starting logcat capture
error: Logcat capture failed: spawn ENOENT
info: [debug] Stopping logcat capture
####################################################################################