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

The server version (2.1) does not match the client (2.1.1) #4276

Closed
2 tasks done
rojaoo opened this issue Sep 3, 2023 · 4 comments
Closed
2 tasks done

The server version (2.1) does not match the client (2.1.1) #4276

rojaoo opened this issue Sep 3, 2023 · 4 comments

Comments

@rojaoo
Copy link

rojaoo commented Sep 3, 2023

  • I have read the FAQ.
  • I have searched in existing issues.

Environment

  • OS: Linux Mint Cinnamon
  • scrcpy version: 2.1.1
  • installation method: manual build
  • device model: is that really needed?
  • Android version: 10

Describe the bug
The server version in the install_release.sh file on the 2.1.1 release's source code is set to use scrcpy-server-v2.1 instead of scrcpy-server-v2.1.1, what makes scrcpy say this when you run:

java.lang.IllegalArgumentException: The server version (2.1) does not match the client (2.1.1)
	at com.genymobile.scrcpy.Options.parse(Options.java:188)
	at com.genymobile.scrcpy.Server.main(Server.java:178)
	at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
	at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:338)
ERROR: Server connection failed

Simply changing the URL and the SHA256 solves the issue. It was just a little annoying.

@rom1v
Copy link
Collaborator

rom1v commented Sep 3, 2023

You must not execute install_release.sh from a tag, but one commit after (or master, which is the intended use case). See #4098 (comment)

@rojaoo
Copy link
Author

rojaoo commented Sep 3, 2023

Ah, so I should just download the master instead of the source code from the releases?

@rojaoo rojaoo closed this as completed Sep 3, 2023
@rom1v
Copy link
Collaborator

rom1v commented Sep 3, 2023

Yes, master is basically the latest release (the development branch is dev).

@rojaoo
Copy link
Author

rojaoo commented Sep 3, 2023

Ok, thank you!

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