remote-android / redroid-doc

redroid (Remote-Android) is a multi-arch, GPU enabled, Android in Cloud solution. Track issues / docs here
4.11k stars 295 forks source link

[server] INFO: Device: redroid redroid14_arm64_only (Android 14) [server] ERROR: Could not invoke method #738

Open fancy45daddy opened 2 weeks ago

fancy45daddy commented 2 weeks ago

Describe the bug 请详细描述问题(ZH_CN) A clear and concise description of what the bug is. 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 andorid and then use

adb connect localhost:5555
scrcpy -s localhost:5555

But I get

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

make sure the required kernel modules present 确保必须的内核功能已开启(ZH_CN)

Collect debug logs 收集调试日志(ZH_CN) curl -fsSL https://raw.githubusercontent.com/remote-android/redroid-doc/master/debug.sh | sudo bash -s -- [CONTAINER] omit CONTAINER if not exist any more. 如容器已退出,可忽略CONTAINER参数(ZH_CN)

Screenshots 截图(ZH_CN) If applicable, add screenshots to help explain your problem.

zhouziyang commented 2 weeks ago

Can you upgrade your scrcpy to latest (v2.6.1 currently)?

Please provide detailed debug blobs if still not working. FYI: https://github.com/remote-android/redroid-doc?tab=readme-ov-file#troubleshooting