info: [37m-->[39m [37mPOST[39m [37m/wd/hub/session[39m [90m{"desiredCapabilities":{"app":"D:\My_ALOHA\Appium\TestProject\apps\demo1.apk","platform":"VISTA","platformVersion":"4.4.3","platformName":"Android","deviceName":"AppiumDemo123","browserName":"","app-package":"com.livestrong.calorietracker","app-activity":"com.livestrong.calorietracker.activities.WelcomeActivity","version":"4.4.2"}}[39m info: [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 info: [debug] No appActivity desired capability or server param. Parsing from apk. info: [debug] No appPackage desired capability or server param. Parsing from apk. info: [debug] Using local app from desired caps: D:\My_ALOHA\Appium\TestProject\apps\demo1.apk info: [debug] Creating new appium session 72fe50ca-03c4-4b3d-b3a4-683a47984b62 info: Starting android appium info: [debug] Using fast reset? true info: [debug] Preparing device for session info: [debug] Checking whether app is actually present info: [debug] Checking whether adb is present info: [debug] Using adb from D:\Android\android-sdk-windows (192.168.8.159)\platform-tools\adb.exe info: Retrieving device info: [debug] Trying to find a connected android device info: [debug] Getting connected devices... info: [debug] executing: "D:\Android\android-sdk-windows (192.168.8.159)\platform-tools\adb.exe" devices info: [debug] Could not find devices, restarting adb server... info: [debug] executing: "D:\Android\android-sdk-windows (192.168.8.159)\platform-tools\adb.exe" kill-server error: Error killing ADB server, going to see if it's online anyway info: [debug] Getting connected devices... info: [debug] executing: "D:\Android\android-sdk-windows (192.168.8.159)\platform-tools\adb.exe" devices info: [debug] Could not find devices, restarting adb server... info: [debug] executing: "D:\Android\android-sdk-windows (192.168.8.159)\platform-tools\adb.exe" kill-server error: Error killing ADB server, going to see if it's online anyway info: [debug] Getting connected devices... info: [debug] executing: "D:\Android\android-sdk-windows (192.168.8.159)\platform-tools\adb.exe" devices info: [debug] Could not find devices, restarting adb server... info: [debug] executing: "D:\Android\android-sdk-windows (192.168.8.159)\platform-tools\adb.exe" kill-server info: [debug] Getting connected devices... error: Error killing ADB server, going to see if it's online anyway info: [debug] executing: "D:\Android\android-sdk-windows (192.168.8.159)\platform-tools\adb.exe" devices info: [debug] Could not find devices, restarting adb server... info: [debug] executing: "D:\Android\android-sdk-windows (192.168.8.159)\platform-tools\adb.exe" kill-server info: [debug] Getting connected devices... error: Error killing ADB server, going to see if it's online anyway info: [debug] executing: "D:\Android\android-sdk-windows (192.168.8.159)\platform-tools\adb.exe" devices info: [debug] Could not find devices, restarting adb server... info: [debug] executing: "D:\Android\android-sdk-windows (192.168.8.159)\platform-tools\adb.exe" kill-server info: [debug] Getting connected devices... error: Error killing ADB server, going to see if it's online anyway info: [debug] executing: "D:\Android\android-sdk-windows (192.168.8.159)\platform-tools\adb.exe" devices info: [debug] Could not find devices, restarting adb server... info: [debug] executing: "D:\Android\android-sdk-windows (192.168.8.159)\platform-tools\adb.exe" kill-server info: [debug] Getting connected devices... error: Error killing ADB server, going to see if it's online anyway info: [debug] executing: "D:\Android\android-sdk-windows (192.168.8.159)\platform-tools\adb.exe" devices info: [debug] Could not find devices, restarting adb server... info: [debug] executing: "D:\Android\android-sdk-windows (192.168.8.159)\platform-tools\adb.exe" kill-server error: Error killing ADB server, going to see if it's online anyway info: [debug] Getting connected devices... info: [debug] executing: "D:\Android\android-sdk-windows (192.168.8.159)\platform-tools\adb.exe" devices info: [debug] Could not find devices, restarting adb server... info: [debug] executing: "D:\Android\android-sdk-windows (192.168.8.159)\platform-tools\adb.exe" kill-server error: Error killing ADB server, going to see if it's online anyway info: [debug] Getting connected devices... info: [debug] executing: "D:\Android\android-sdk-windows (192.168.8.159)\platform-tools\adb.exe" devices info: [debug] Could not find devices, restarting adb server... error: Error killing ADB server, going to see if it's online anyway info: [debug] Getting connected devices... info: [debug] executing: "D:\Android\android-sdk-windows (192.168.8.159)\platform-tools\adb.exe" devices info: [debug] Could not find devices, restarting adb server... info: [debug] executing: "D:\Android\android-sdk-windows (192.168.8.159)\platform-tools\adb.exe" kill-server error: Error killing ADB server, going to see if it's online anyway info: [debug] Getting connected devices... info: [debug] executing: "D:\Android\android-sdk-windows (192.168.8.159)\platform-tools\adb.exe" devices info: [debug] Could not find devices, restarting adb server... info: [debug] executing: "D:\Android\android-sdk-windows (192.168.8.159)\platform-tools\adb.exe" kill-server error: Error killing ADB server, going to see if it's online anyway info: [debug] Getting connected devices... info: [debug] executing: "D:\Android\android-sdk-windows (192.168.8.159)\platform-tools\adb.exe" devices info: [debug] Could not find devices, restarting adb server... info: [debug] executing: "D:\Android\android-sdk-windows (192.168.8.159)\platform-tools\adb.exe" kill-server error: Error killing ADB server, going to see if it's online anyway info: [debug] Getting connected devices... info: [debug] executing: "D:\Android\android-sdk-windows (192.168.8.159)\platform-tools\adb.exe" devices info: [debug] Could not find devices, restarting adb server... info: [debug] executing: "D:\Android\android-sdk-windows (192.168.8.159)\platform-tools\adb.exe" kill-server error: Error killing ADB server, going to see if it's online anyway info: [debug] Getting connected devices... info: [debug] executing: "D:\Android\android-sdk-windows (192.168.8.159)\platform-tools\adb.exe" devices info: [debug] Could not find devices, restarting adb server...在Appium服務器中獲取連接錯誤
-1
A
回答
0
您的appActivity和appPackage功能缺失。請將此添加到您的功能分類中:
capabilities.setCapability("appPackage", packageName);
capabilities.setCapability("appActivity", activityName);
0
您以錯誤的格式編寫了活動和軟件包功能。複製並粘貼以下代碼。它應該是「appPackage」或「app-Package」的活動。
capabilities.setCapability(「appPackage」,「com.livestrong.calorietracker」); capabilities.setCapability(「appActivity」,「com.livestrong.calorietracker.activities.WelcomeActivity」);
此外,請確保在手機的開發者模式下打開調試模式,因爲它似乎Android adb無法檢測到您的手機。
相關問題
- 1. Appium檢查器連接錯誤
- 2. 在hapi服務器中獲取錯誤
- 3. 服務器連接中的錯誤
- 4. 在Ruby中使用Appium我得到:錯誤:無法連接到Appium。服務器正在運行嗎? (RuntimeError)
- 5. 試圖通過Smack連接XMPP服務器並獲取錯誤
- 6. 獲取錯誤「無法連接到粘貼板服務器」。 Swift
- 7. 鏈接服務器連接錯誤
- 8. 套接字服務器連接錯誤
- 9. 從CloudAMQP獲取「連接被拒絕」服務器(111):連接錯誤
- 10. 服務器錯誤:服務器在讀取響應關閉了連接
- 11. 在Windows上安裝Appium服務器 - 如何獲取咕嚕聲錯誤?
- 12. 在SSL服務器上獲取錯誤
- 13. Ruby on Rails服務器連接錯誤
- 14. 錯誤連接到Exchange服務器
- 15. Java SQl服務器連接錯誤
- 16. IIS/SQL服務器連接錯誤
- 17. 連接到Microsoft SQL服務器錯誤
- 18. 連接到APNS服務器錯誤
- 19. 錯誤連接節儉服務器c + +
- 20. aspnet_regsql錯誤未連接到服務器
- 21. 當連接服務器XMPP有錯誤
- 22. postgres_fdw錯誤無法連接服務器
- 23. 錯誤 - 無法連接到服務器
- 24. node.js錯誤:連接ECONNREFUSED;從服務器
- 25. 錯誤連接服務器的Apache
- 26. 錯誤連接APNS服務器
- 27. Postgress服務器錯誤 - > PGError:無法連接到服務器
- 28. 錯誤:連接拒絕連接到套接字服務器時
- 29. 在HTTP Url連接中獲取錯誤
- 30. 在iTunes中獲取錯誤連接