You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
getPrimaryClip and setPrimaryClip not work on git commit 5a6b831:
[server] ERROR: Could not invoke method
java.lang.NoSuchMethodException: android.content.IClipboard$Stub$Proxy.getPrimaryClip [class java.lang.String, int, class java.lang.String]
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:44)
at com.genymobile.scrcpy.wrappers.ClipboardManager.getText(ClipboardManager.java:117)
at com.genymobile.scrcpy.Device.getClipboardText(Device.java:286)
at com.genymobile.scrcpy.Device.setClipboardText(Device.java:299)
at com.genymobile.scrcpy.Controller.setClipboard(Controller.java:396)
at com.genymobile.scrcpy.Controller.handleEvent(Controller.java:164)
at com.genymobile.scrcpy.Controller.control(Controller.java:83)
at com.genymobile.scrcpy.Controller.lambda$start$0$com-genymobile-scrcpy-Controller(Controller.java:91)
at com.genymobile.scrcpy.Controller$$ExternalSyntheticLambda1.run(Unknown Source:4)
at java.lang.Thread.run(Thread.java:1042)
[server] ERROR: Could not invoke method
java.lang.NoSuchMethodException: android.content.IClipboard$Stub$Proxy.setPrimaryClip [class android.content.ClipData, class java.lang.String, class java.lang.String, int, int]
at java.lang.Class.getMethod(Class.java:2937)
at java.lang.Class.getMethod(Class.java:2449)
at com.genymobile.scrcpy.wrappers.ClipboardManager.getSetPrimaryClipMethod(ClipboardManager.java:68)
at com.genymobile.scrcpy.wrappers.ClipboardManager.setText(ClipboardManager.java:131)
at com.genymobile.scrcpy.Device.setClipboardText(Device.java:309)
at com.genymobile.scrcpy.Controller.setClipboard(Controller.java:396)
at com.genymobile.scrcpy.Controller.handleEvent(Controller.java:164)
at com.genymobile.scrcpy.Controller.control(Controller.java:83)
at com.genymobile.scrcpy.Controller.lambda$start$0$com-genymobile-scrcpy-Controller(Controller.java:91)
at com.genymobile.scrcpy.Controller$$ExternalSyntheticLambda1.run(Unknown Source:4)
at java.lang.Thread.run(Thread.java:1042)
Tried scrcpy-server from scrcpy-win64-fix4589.zip and the getPrimaryClip fixed but not setPrimaryClip:
INFO: Device clipboard copied
[server] ERROR: Could not invoke method
java.lang.NoSuchMethodException: android.content.IClipboard$Stub$Proxy.setPrimaryClip [class android.content.ClipData, class java.lang.String, class java.lang.String, int, int]
at java.lang.Class.getMethod(Class.java:2937)
at java.lang.Class.getMethod(Class.java:2449)
at com.genymobile.scrcpy.wrappers.ClipboardManager.getSetPrimaryClipMethod(ClipboardManager.java:81)
at com.genymobile.scrcpy.wrappers.ClipboardManager.setText(ClipboardManager.java:149)
at com.genymobile.scrcpy.Device.setClipboardText(Device.java:309)
at com.genymobile.scrcpy.Controller.setClipboard(Controller.java:396)
at com.genymobile.scrcpy.Controller.handleEvent(Controller.java:164)
at com.genymobile.scrcpy.Controller.control(Controller.java:83)
at com.genymobile.scrcpy.Controller.lambda$start$0$com-genymobile-scrcpy-Controller(Controller.java:91)
at com.genymobile.scrcpy.Controller$$ExternalSyntheticLambda1.run(Unknown Source:4)
at java.lang.Thread.run(Thread.java:1042)
Seems that we forgot setPrimaryClip?
The text was updated successfully, but these errors were encountered:
Environment
Describe the bug
getPrimaryClip
andsetPrimaryClip
not work on git commit 5a6b831:scrcpy-server
fromscrcpy-win64-fix4589.zip
and thegetPrimaryClip
fixed but notsetPrimaryClip
:Seems that we forgot
setPrimaryClip
?The text was updated successfully, but these errors were encountered: