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

Can't connect to my phone after upgrade scrcpy 1.25 to 2.0 #3804

Closed
sakylian opened this issue Mar 13, 2023 · 4 comments
Closed

Can't connect to my phone after upgrade scrcpy 1.25 to 2.0 #3804

sakylian opened this issue Mar 13, 2023 · 4 comments

Comments

@sakylian
Copy link

Run under Debian
uname -a
Linux cool-lily 6.0.0-kali6-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.0.12-1kali1 (2022-12-19) x86_64 GNU/Linux

─$ scrcpy
scrcpy 2.0 https://github.com/Genymobile/scrcpy
/usr/local/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 2.2 MB/s (42151 bytes in 0.019s)
[server] ERROR: Exception on thread Thread[main,5,main]
java.lang.IllegalArgumentException: The server version (1.25) does not match the client (2.0)
at com.genymobile.scrcpy.Server.createOptions(Server.java:166)
at com.genymobile.scrcpy.Server.main(Server.java:330)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:392)
ERROR: Server connection failed

@rom1v
Copy link
Collaborator

rom1v commented Mar 13, 2023

java.lang.IllegalArgumentException: The server version (1.25) does not match the client (2.0)

You're still using the old scrcpy-server in /usr/local/share/scrcpy/scrcpy-server.

How did you install the new one?

@sakylian
Copy link
Author

I manually build the new release source code. How to push the new scrcpy-server to my phone?

@rom1v
Copy link
Collaborator

rom1v commented Mar 13, 2023

You didn't build the new server (or did not install it to your local machine).

Checkout msater and use install_release.sh for simplicity: https://github.com/Genymobile/scrcpy/blob/master/doc/linux.md#latest-version

@sakylian
Copy link
Author

Thanks, it solved. I pull the newest source code and rebuild the app, it works.

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

2 participants