Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
108.83k stars 10.47k forks source link

[server] ERROR: Could not invoke method #5245

Open fancy45daddy opened 2 weeks ago

fancy45daddy commented 2 weeks ago

Please read the prerequisites to run scrcpy.

Also read the FAQ and check if your issue already exists.

Environment

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).

I use

sudo podman run -d --privileged -p 5555:5555 --name redroid docker.io/redroid/redroid:14.0.0_64only-latest androidboot.redroid_gpu_mode=guest

to run android

scrcpy 1.25 <https://github.com/Genymobile/scrcpy>
/usr/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 192.1 MB/s (41650 bytes in 0.000s)
[server] INFO: Device: redroid redroid14_arm64_only (Android 14)
[server] ERROR: Could not invoke method
java.lang.NoSuchMethodException: android.content.IClipboard$Stub$Proxy.addPrimaryClipChangedListener [interface android.content.IOnPrimaryClipChangedListener, class java.lang.String, class java.lang.String, int]
    at java.lang.Class.getMethod(Class.java:2937)
    at java.lang.Class.getMethod(Class.java:2449)
    at com.genymobile.scrcpy.wrappers.ClipboardManager.getAddPrimaryClipChangedListener(ClipboardManager.java:128)
    at com.genymobile.scrcpy.wrappers.ClipboardManager.addPrimaryClipChangedListener(ClipboardManager.java:138)
    at com.genymobile.scrcpy.Device.<init>(Device.java:100)
    at com.genymobile.scrcpy.Server.scrcpy(Server.java:64)
    at com.genymobile.scrcpy.Server.main(Server.java:334)
    at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
    at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:359)
INFO: Renderer: opengl
INFO: OpenGL version: 4.6 (Compatibility Profile) Mesa 24.0.9-0ubuntu0.1
INFO: Trilinear filtering enabled
INFO: Initial texture: 720x1280

Please do not post screenshots of your terminal, just post the content as text instead.

rom1v commented 2 weeks ago

scrcpy 1.25 https://github.com/Genymobile/scrcpy

1.25 is way too old.

Don't use the official Debian/Ubuntu package, it is obsolete.

https://github.com/Genymobile/scrcpy/blob/master/doc/linux.md#latest-version