Skip to content

scrcpy not working while working on android project in vscode #992

@RashminDungrani

Description

@RashminDungrani

scrcpy version 1.11
adb --version
Android Debug Bridge version 1.0.39
Version 1:8.1.0+r23-5

when i try to start the server it gives me error like

jarvis@debian:~$ adb kill-server
jarvis@debian:~$ adb start-server
adb server version (41) doesn't match this client (39); killing...
ADB server didn't ACK
Full server startup log: /tmp/adb.1000.log
Server had pid: 7311
--- adb starting (pid 7311) ---
adb I 12-08 16:05:04  7311  7311 main.cpp:57] Android Debug Bridge version 1.0.39
adb I 12-08 16:05:04  7311  7311 main.cpp:57] Version 1:8.1.0+r23-5
adb I 12-08 16:05:04  7311  7311 main.cpp:57] Installed as /usr/bin/adb
adb I 12-08 16:05:04  7311  7311 main.cpp:57] 
adb I 12-08 16:05:04  7311  7311 adb_auth_host.cpp:416] adb_auth_init...
adb I 12-08 16:05:04  7311  7311 adb_auth_host.cpp:174] read_key_file '/home/jarvis/.android/adbkey'...
adb I 12-08 16:05:04  7311  7311 adb_auth_host.cpp:391] adb_auth_inotify_init...
adb server killed by remote request
--- adb starting (pid 7321) ---
adb I 12-08 16:05:05  7321  7321 main.cpp:60] Android Debug Bridge version 1.0.41
adb I 12-08 16:05:05  7321  7321 main.cpp:60] Version 29.0.5-5949299
adb I 12-08 16:05:05  7321  7321 main.cpp:60] Installed as /home/jarvis/Android/Sdk/platform-tools/adb
adb I 12-08 16:05:05  7321  7321 main.cpp:60] 
adb I 12-08 16:05:05  7321  7321 auth.cpp:437] adb_auth_init...
adb I 12-08 16:05:05  7321  7321 auth.cpp:412] adb_auth_inotify_init...
adb I 12-08 16:05:05  7321  7327 transport.cpp:282] emulator-5554: read thread spawning
adb I 12-08 16:05:05  7321  7328 transport.cpp:295] emulator-5554: write thread spawning
adb I 12-08 16:05:05  7321  7321 adb.cpp:110] emulator-5554: already offline
adb I 12-08 16:05:05  7321  7329 transport.cpp:282] 5f20b737d240: read thread spawning
adb I 12-08 16:05:05  7321  7330 transport.cpp:295] 5f20b737d240: write thread spawning
adb I 12-08 16:05:05  7321  7321 adb.cpp:110] 5f20b737d240: already offline

* failed to start daemon
error: cannot connect to daemon

It works but until my flutter project not opens in vscode

jarvis@debian:~$ scrcpy
INFO: scrcpy 1.11 <https://github.com/Genymobile/scrcpy>
adb server version (41) doesn't match this client (39); killing...
* daemon started successfully
/usr/local/share/scrcpy/scrcpy-server: 1 file pushed. 0.8 MB/s (25454 bytes in 0.032s)
INFO: Initial texture: 720x1280
WARN: Device disconnected

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions