scrcpy icon indicating copy to clipboard operation
scrcpy copied to clipboard

The server version (1.23) does not match the client (1.24)

Open megadrifter opened this issue 3 years ago • 4 comments

Hi. I have downloaded the latest 1.24 version tar.gz. Then unpack, then run installation script and it ended successfully.

Then I try to run application and get:

scrcpy 1.24 <https://github.com/Genymobile/scrcpy>
/usr/local/share/scrcpy/scrcpy-server: 1 file pushed. 4.0 MB/s (41123 bytes in 0.010s)
[server] ERROR: Exception on thread Thread[main,5,main]
java.lang.IllegalArgumentException: The server version (1.23) does not match the client (1.24)
	at com.genymobile.scrcpy.Server.createOptions(Server.java:167)
	at com.genymobile.scrcpy.Server.main(Server.java:327)
	at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
	at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:359)
ERROR: Server connection failed

If I download 1.23 package, the same situation, it shows server version 1.22.

megadrifter avatar Aug 05 '22 14:08 megadrifter

You probably installed v1.23 in /usr/local/share/scrcpy/scrcpy-server.

rom1v avatar Aug 05 '22 14:08 rom1v

Oh, no, ok, the installation script is updated AFTER the tag when I make a release (because it depends on the binary to be built to know the checksum), so if you checkout the tag, you get the old "simple" installation script.

If you want to use the "simple" installation script, you should checkout master (or one commit after the release tag, e.g. https://github.com/Genymobile/scrcpy/commit/3a99e129e628911dde73f486aece1ca3ebe06ead).

rom1v avatar Aug 05 '22 14:08 rom1v

Just had the same issue and here's a quick fix: -get the source code -open install-release.sh in a text editor -edit the two "1.23" at the 5th line and replace with "1.24" (or the latest version) -comment out the sha256 check in the 11th line -run the script

poti225 avatar Aug 13 '22 08:08 poti225

Of course. But you could just take the commit which has the change.

rom1v avatar Aug 13 '22 09:08 rom1v

Of course. But you could just take the commit which has the change.

Just had the same issue and here's a quick fix: -get the source code -open install-release.sh in a text editor -edit the two "1.23" at the 5th line and replace with "1.24" (or the latest version) -comment out the sha256 check in the 11th line -run the script

i'm noob windows user here, any detailed step by step to do it because i face same problem, need help please...

kajdjh avatar Oct 04 '23 13:10 kajdjh

On Windows, just download the latest release.

rom1v avatar Oct 04 '23 13:10 rom1v