Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shell am start -n com.netease.open.pocoservice/.TestActivity #595

Open
aogg opened this issue Sep 25, 2023 · 0 comments
Open

shell am start -n com.netease.open.pocoservice/.TestActivity #595

aogg opened this issue Sep 25, 2023 · 0 comments

Comments

@aogg
Copy link

aogg commented Sep 25, 2023

怎么老是启动你这服务失败的啊

[pocoservice.apk] stdout: b'\ncom.netease.open.pocoservice.InstrumentedTestAsLauncher:'
[pocoservice.apk] stderr: b''
[01:16:14][DEBUG]<airtest.core.android.adb> /usr/local/lib/python3.11/site-packages/airtest/core/android/static/adb/linux/adb -P 5037 -s 192.168.31.90:5555 shell am start -n com.netease.open.pocoservice/.TestActivity
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/airtest/core/android/adb.py", line 375, in shell
    out = self.raw_shell(cmd)
          ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/airtest/core/android/adb.py", line 333, in raw_shell
    out = self.cmd(cmds, ensure_unicode=False)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/airtest/core/android/adb.py", line 198, in cmd
    raise AdbError(stdout, stderr)
airtest.core.error.AdbError: stdout[b''] stderr[b"adb server version (41) doesn't match this client (40); killing...\nADB server didn't ACK\nFull server startup log: /tmp/adb.0.log\nServer had pid: 108\n--- adb starting (pid 108) ---\nadb I 09-25 01:16:14   108   108 main.cpp:56] Android Debug Bridge version 1.0.40\nadb I 09-25 01:16:14   108   108 main.cpp:56] Version 4986621\nadb I 09-25 01:16:14   108   108 main.cpp:56] Installed as /usr/local/lib/python3.11/site-packages/airtest/core/android/static/adb/linux/adb\nadb I 09-25 01:16:14   108   108 main.cpp:56] \nerror: could not install *smartsocket* listener: Address already in use\n\n* failed to start daemon\nerror: cannot connect to daemon\n"]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.11/site-packages/poco/drivers/android/uiautomation.py", line 121, in run
    self.poco._start_instrument(self.port_to_ping)  # 尝试重启
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/poco/drivers/android/uiautomation.py", line 256, in _start_instrument
    self.adb_client.shell('am start -n {}/.TestActivity'.format(PocoServicePackage))
  File "/usr/local/lib/python3.11/site-packages/airtest/core/android/adb.py", line 377, in shell
    raise AdbShellError(err.stdout, err.stderr)
airtest.core.error.AdbShellError: stdout[b''] stderr[b"adb server version (41) doesn't match this client (40); killing...\nADB server didn't ACK\nFull server startup log: /tmp/adb.0.log\nServer had pid: 108\n--- adb starting (pid 108) ---\nadb I 09-25 01:16:14   108   108 main.cpp:56] Android Debug Bridge version 1.0.40\nadb I 09-25 01:16:14   108   108 main.cpp:56] Version 4986621\nadb I 09-25 01:16:14   108   108 main.cpp:56] Installed as /usr/local/lib/python3.11/site-packages/airtest/core/android/static/adb/linux/adb\nadb I 09-25 01:16:14   108   108 main.cpp:56] \nerror: could not install *smartsocket* listener: Address already in use\n\n* failed to start daemon\nerror: cannot connect to daemon\n"]
[01:16:15][DEBUG]<airtest.core.android.rotation> orientationWatcher has ended

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant