首页 文章

无法通过Appium在Windows 10上启动计算器显示错误

提问于
浏览
2

当我试图通过安装在Windows 10上的appium启动计算器时,会显示以粗体标记的错误 . 请帮助

info:[debug]执行cmd:“C:\ Program Files \ Android \ android-sdk \ platform-tools \ adb.exe”-s NTIO030423安装“C:\ Program Files \ Appium \ node_modules \ appium \ build \ settings_apk \ settings_apk-debug.apk”

info:[debug]将解锁帮助应用程序推送到设备... info:[debug]执行cmd:“C:\ Program Files \ Android \ android-sdk \ platform-tools \ adb.exe”-s NTIO030423安装“C :\ Program Files \ Appium \ node_modules \ appium \ build \ unlock_apk \ unlock_apk-debug.apk“info:启动应用信息:[debug]试图杀死所有'uiautomator'进程信息:[debug]使用'uiautomator'获取所有进程info:[debug]执行cmd:“C:\ Program Files \ Android \ android-sdk \ platform-tools \ adb.exe”-s NTIO030423 shell“ps'uiautomator'”info:[debug]找不到匹配的进程信息: [debug]运行bootstrap信息:[debug]产生:C:\ Program Files \ Android \ android-sdk \ platform-tools \ adb.exe -s NTIO030423 shell uiautomator runtest AppiumBootstrap.jar -c io.appium.android.bootstrap . Bootstrap -e pkg com.android.calculator2 -e disableAndroidWatchers false info:[debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS:numtests = 1 info:[debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS:stream = info:[debug] [UIAUTOMAT或STDOUT] io.appium.android.bootstrap.Bootstrap:info:[debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS:id = UiAutomatorTestRunner info:[debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS:test = testRunServer info:[debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS:class = io.appium.android.bootstrap.Bootstrap info:[debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS:current = 1 info:[debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE:1 info:[debug] [BOOTSTRAP] [debug]在端口4724上打开套接字信息:[debug] [BOOTSTRAP] [debug] Appium Socket Server准备信息:[debug] [BOOTSTRAP] [debug]加载json ...错误:未处理的错误:错误:在Object.exports的getaddrinfo ENOENT . _errnoException(util.js:746:11)在errnoException(dns.js:49:15)的GetAddrInfoReqWrap.onlookup [as oncomplete](dns.js:94:26)context:[POST / wd / hub / session {“ desiredCapabilities“:{”appPackage“:”com.android.calculator2“,”appActivity“:”com.android.calculator2.Calculator“,”platformName“:”Android“,”deviceName“ “:”Moto G“,”platformVersion“:”6.0“}}] info:[debug] [BOOTSTRAP] [debug]已注册的崩溃观察者 .

2 回答

  • 0

    如果未正确设置ur路径,则会发生这种情况 . 非常你的PATH变量和ANDROIDHOME @varunnadim

  • 0

    这是因为它无法解析dns名称...

    确保在网络配置中添加dns服务器地址 .

    如果您使用的是localhost,则需要有效的Internet连接才能解析为有效的IP ...在这种情况下请检查您的Internet连接

相关问题