Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[server] ERROR: Could not invoke method #3628

Closed
2 tasks done
cyberboh opened this issue Dec 20, 2022 · 2 comments
Closed
2 tasks done

[server] ERROR: Could not invoke method #3628

cyberboh opened this issue Dec 20, 2022 · 2 comments

Comments

@cyberboh
Copy link

cyberboh commented Dec 20, 2022

  • I have read the FAQ.
  • I have searched in existing issues.

Environment

  • OS: Windows
  • scrcpy version: [e.g. 1.24]
  • installation method: [Windows release...]
  • device model: Poco f3
  • Android version: [13 Dec SPL]

Describe the bug
I get this error as soon as i connect the device

On errors, please provide the output of the console (and adb logcat if relevant).

[server] ERROR: Could not invoke method
java.lang.NoSuchMethodException: android.content.IClipboard$Stub$Proxy.addPrimaryClipChangedListener [interface android.content.IOnPrimaryClipChangedListener, class java.lang.String, int]
        at java.lang.Class.getMethod(Class.java:2103)
        at java.lang.Class.getMethod(Class.java:1724)
        at com.genymobile.scrcpy.wrappers.ClipboardManager.getAddPrimaryClipChangedListener(ClipboardManager.java:103)
        at com.genymobile.scrcpy.wrappers.ClipboardManager.addPrimaryClipChangedListener(ClipboardManager.java:111)
        at com.genymobile.scrcpy.Device.<init>(Device.java:103)
        at com.genymobile.scrcpy.Server.scrcpy(Server.java:65)
        at com.genymobile.scrcpy.Server.main(Server.java:335)
        at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
        at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:360)

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

@rom1v
Copy link
Collaborator

rom1v commented Dec 20, 2022

Thank you for your report.

This is a duplicate of #3497.

Specifically, please test: #3497 (comment)

@cyberboh
Copy link
Author

Thank you, fixed in 1.25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants