Genymobile / Genymobile/scrcpy
scrcpy getting closed when running flutter project in vs code on ubuntu
- Dominant language
- C
- Stars
- 150k
- Forks
- 13.7k
- Avg merge
- 4d 13h
- Merged PRs (30d)
- 2
Description
- [ ] I have read the [FAQ](https://github.com/Genymobile/scrcpy/blob/master/FAQ.md).
- [ ] I have searched in existing [issues](https://github.com/Genymobile/scrcpy/issues).
**Environment**
- OS: Ubuntu
- scrcpy version: [e.g. 1.12.1]
- installation method: snap
- device model: Galaxy S10 Lite
- Android version: 11
**Describe the bug**
A clear and concise description of what the bug is.
On errors, please provide the output of the console (and `adb logcat` if relevant).
```
scrcpy 1.21
adb server version (41) doesn't match this client (39); killing...
ADB server didn't ACK
Full server startup log: /tmp/adb.1001.log
Server had pid: 8050
--- adb starting (pid 8050) ---
adb I 12-31 12:10:35 8050 8050 main.cpp:57] Android Debug Bridge version 1.0.39
adb I 12-31 12:10:35 8050 8050 main.cpp:57] Version 1:8.1.0+r23-5~18.04
adb I 12-31 12:10:35 8050 8050 main.cpp:57] Installed as /snap/scrcpy/364/usr/lib/android-sdk/platform-tools/adb
adb I 12-31 12:10:35 8050 8050 main.cpp:57]
adb I 12-31 12:10:35 8050 8050 adb_auth_host.cpp:416] adb_auth_init...
adb I 12-31 12:10:35 8050 8050 adb_auth_host.cpp:174] read_key_file '/home/anu/snap/scrcpy/364/.android/adbkey'...
adb I 12-31 12:10:35 8050 8050 adb_auth_host.cpp:391] adb_auth_inotify_init...
adb I 12-31 12:10:35 8050 8050 adb_auth_host.cpp:467] Calling send_auth_response
adb server killed by remote request
* failed to start daemon
error: cannot connect to daemon
ERROR: "adb get-serialno" returned with value 1
ERROR: Could not get device serial
ERROR: Server connection failed
```
```
adb version
Android Debug Bridge version 1.0.39
Version 1:8.1.0+r23-5~18.04
Installed as /usr/lib/android-sdk/platform-tools/adb
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the scrcpy 1.21 console output and the reported adb version details, then compare the snap-provided adb with the system adb at /usr/lib/android-sdk/platform-tools/adb. Reproduce the Flutter/VS Code launch on Ubuntu and document a confirmed cause and resolution for the daemon startup failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, ubuntu
- Domain
- mobile-dev, operating-systems, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100