当我尝试通过安装在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'流程 info:[debug]使用' uiautomator'获取所有流程 info:[debug]执行cmd:" C:\ Program Files \ Android \ android-sdk \ platform-tools \ adb.exe" -s NTIO030423 shell" ps' uiautomator'" info:[debug]找不到匹配的进程 info:[debug]运行bootstrap info:[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] [UIAUTOMATOR 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上打开套接字 info:[debug] [BOOTSTRAP] [debug] Appium Socket Server Ready info:[debug] [BOOTSTRAP] [debug]加载json ... 错误:未处理的错误:错误:getaddrinfo ENOENT at Object.exports._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和#34; ," deviceName":" Moto G"," platformVersion":" 6.0"}}] info:[debug] [BOOTSTRAP] [debug]已注册的崩溃观察者。
答案 0 :(得分:0)
如果未正确设置ur路径,则会发生这种情况。非常你的PATH变量和ANDROIDHOME @varunnadim
答案 1 :(得分:0)
这是因为它无法解析dns名称......
确保在网络配置中添加dns服务器地址..
如果您使用的是localhost,则需要有效的互联网连接才能解析为有效的IP ...在这种情况下请检查您的互联网连接