1
Appium版本:1.6.4-βAppium:UiAutomator代碼爲0意外退出,信號中的空
Appium服務器拋出以下異常:
Caused by: org.openqa.selenium.remote.SessionNotFoundException: A session is either terminated or not started (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 22 milliseconds
os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_121'
Driver info: io.appium.java_client.android.AndroidDriver
I see following in appium server log:
UiAutomator] UiAutomator exited unexpectedly with code 0, signal null
[debug] [UiAutomator] Moving to state 'stopped'
[debug] [AndroidDriver] Shutting down Android driver
[Appium] Closing session, cause was 'UiAUtomator shut down unexpectedly'
[Appium] Removing session 1865dd4e-ed7e-431a-8233-0227173400a5 from our master session list
我不明白爲什麼UiAutomator正在退出。任何幫助在這裏非常感謝。
是你能解決這個問題呢? – vaibhavcool20
是的。我使用了2個驅動程序實例。兩者都以某種方式與同一部手機相連。所以在創建一個之後,第二個實例終止了第一個。因此UIAutomator正在退出。 – user3179786