gpt4 book ai didi

java - 错误 : Logcat capture failed: spawn ENOENT

转载 作者:塔克拉玛干 更新时间:2023-11-02 18:52:26 34 4
gpt4 key购买 nike

Starting Node Server 
info: Welcome to Appium v1.2.0 (REV e53f49c706a25242e66d36685c268b599cc18da5)
debug: Non-default server args: {"address":"127.0.0.1","logNoColors":true,"platformName":"Android","platformVersion":"19","automationName":"Appium"}
info: Appium REST http interface listener started on 127.0.0.1:4723
info: LogLevel: debug
info: --> POST /wd/hub/session {"desiredCapabilities":{"automationName":"Appium","platform":"Android","platformVersion":"19","app":"C:\\Users\\qadeer\\Documents\\NetBeansProjects\\convoTest\\app\\Convo.apk","platformName":"Android","deviceName":"01899dd5c94c237a","browserName":"","app-package":"com.convo.android","app-activity":".ConvoMain","version":"4.4.2"}}
debug: Appium request initiated at /wd/hub/session
debug: Request received with params: {"desiredCapabilities":{"automationName":"Appium","platform":"Android","platformVersion":"19","app":"C:\\Users\\qadeer\\Documents\\NetBeansProjects\\convoTest\\app\\Convo.apk","platformName":"Android","deviceName":"01899dd5c94c237a","browserName":"","app-package":"com.convo.android","app-activity":".ConvoMain","version":"4.4.2"}}
info: Starting android appium
debug: The following desired capabilities were provided, but not recognized by appium. They will be passed on to any other services running on this server. : platform, app-package, app-activity, version
debug: No appActivity desired capability or server param. Parsing from apk.
debug: No appPackage desired capability or server param. Parsing from apk.
debug: Using local app from desired caps: C:\Users\qadeer\Documents\NetBeansProjects\convoTest\app\Convo.apk
debug: Creating new appium session baf82af5-dfab-4837-8fa0-a56da25fa1ec
debug: Using fast reset? true
debug: Preparing device for session
debug: Checking whether app is actually present
debug: Checking whether adb is present
debug: Using adb from D:\Soft backup\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\adb.exe

info: Retrieving device
debug: Trying to find a connected android device
debug: Getting connected devices...
debug: executing: "D:\Soft backup\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\adb.exe" devices
debug: 1 device(s) connected
info: Found device 01899dd5c94c237a
debug: Setting device id to 01899dd5c94c237a
debug: Waiting for device to be ready and to respond to shell commands (timeout = 5)
debug: executing: "D:\Soft backup\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\adb.exe" -s 01899dd5c94c237a wait-for-device
debug: executing: "D:\Soft backup\adt-bundle-windows-x86_64-20131030\sdk\platform-tools\adb.exe" -s 01899dd5c94c237a shell "echo 'ready'"
debug: Starting logcat capture
error: Logcat capture failed: spawn ENOENT
debug: Stopping logcat capture

这是 appium 应用服务器日志,我收到了这个错误

error: Logcat capture failed: spawn ENOENT
debug

:停止 logcat 捕获

我的应用程序被挂起这是我的能力

    File app = new File( "app/Sat.apk");

if(app.exists())
System.out.println("exsist");

DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(CapabilityType.BROWSER_NAME, "");
capabilities.setCapability(CapabilityType.PLATFORM, "Android");
capabilities.setCapability(CapabilityType.VERSION, "4.4.2");
capabilities.setCapability("automationName","Appium");
capabilities.setCapability("platformName","Android");
capabilities.setCapability("platformVersion", "19");
//capabilities.setCapability("deviceName", "emulator-5554");
capabilities.setCapability("deviceName", "01899dd5c94c237a");
//capabilities.setCapability("device-orientation", "portrait");
capabilities.setCapability("app", app.getAbsolutePath());
capabilities.setCapability("app-package", "com.sat.android");
capabilities.setCapability("app-activity", ".SatMain");


try {
driver = new RemoteWebDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);
} catch (MalformedURLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
driver.manage().timeouts().implicitlyWait(80, TimeUnit.SECONDS);
driver.quit();

到现在我还不明白为什么logcat没有显示响应是什么问题

请提供帮助,我们将不胜感激:)

最佳答案

我有一个类似的问题,我通过删除我的 sdk 文件夹路径中的空格来解决它。在你的情况下,尝试将你的路径重命名为

"D:\Softbackup\adt-bundle-windows-x86_64-20131030\sdk\"而不是

"D:\软备份\adt-bundle-windows-x86_64-20131030\sdk\"

关于java - 错误 : Logcat capture failed: spawn ENOENT,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25995617/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com