viarotel-org / escrcpy

📱 Graphical Scrcpy to display and control Android, devices powered by Electron. - 使用图形化的 Scrcpy 显示和控制您的 Android 设备,由 Electron 驱动。
https://github.com/viarotel-org/escrcpy
Apache License 2.0
2.34k stars 173 forks source link

The problem with using Scrcpy is that the copied content on the phone cannot be transferred to the computer and cannot be pasted on the computer #201

Closed puwei7788 closed 2 months ago

puwei7788 commented 2 months ago

[server] ERROR: Could not invoke method java.lang.NoSuchMethodException: android.content.IClipboard$Stub$Proxy.getPrimaryClip [class java.lang.String, class java.lang.String, class java.lang.String, class java.lang.String, int, int, boolean] at java.lang.Class.getMethod(Class.java:2937) at java.lang.Class.getMethod(Class.java:2449) at com.genymobile.scrcpy.wrappers.ClipboardManager.getGetPrimaryClipMethod(ClipboardManager.java:64) at com.genymobile.scrcpy.wrappers.ClipboardManager.getText(ClipboardManager.java:152) at com.genymobile.scrcpy.Device.getClipboardText(Device.java:290) at com.genymobile.scrcpy.Device$3.dispatchPrimaryClipChanged(Device.java:143) at android.content.IOnPrimaryClipChangedListener$Stub.onTransact(IOnPrimaryClipChangedListener.java:84) at android.os.Binder.execTransactInternal(Binder.java:1371) at android.os.Binder.execTransact(Binder.java:1310)

——The above issues that occur during the use of Scrcpy prevent the copied content on the phone from being transmitted to the computer

puwei7788 commented 2 months ago

The phone is Honor Magic5 (Android 14.0), and the computer is Thinkbook for Windows 11

puwei7788 commented 2 months ago

scrcpy --mouse=sdk --keyboard=uhid 这样没用哈~