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

Notsupport android15: java.lang.NoSuchMethodException: android.view.SurfaceControl.createDisplay #337

Closed
wangyuc opened this issue Nov 29, 2024 · 1 comment

Comments

@wangyuc
Copy link

wangyuc commented Nov 29, 2024

Scrcpy 3.0 can be used normally.
But use ws-scrcpy the screen on web is black , it cannot be seen.

console error:
stdout: java.lang.AssertionError: java.lang.NoSuchMethodException: android.view.SurfaceControl.createDisplay [class java.lang.String, boolean]
at com.genymobile.scrcpy.wrappers.SurfaceControl.createDisplay(SurfaceControl.java:83)
at com.genymobile.scrcpy.ScreenEncoder.createDisplay(ScreenEncoder.java:258)
at com.genymobile.scrcpy.ScreenEncoder.internalStreamScreen(ScreenEncoder.java:100)
at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:82)
at com.genymobile.scrcpy.ScreenEncoder.run(ScreenEncoder.java:294)
at java.lang.Thread.run(Thread.java:1012)
Caused by: java.lang.NoSuchMethodException: android.view.SurfaceControl.createDisplay [class java.lang.String, boolean]
at java.lang.Class.getMethod(Class.java:2950)
at java.lang.Class.getMethod(Class.java:2450)
at com.genymobile.scrcpy.wrappers.SurfaceControl.createDisplay(SurfaceControl.java:81)
... 5 more

@wangyuc wangyuc closed this as completed Dec 6, 2024
@wangyuc
Copy link
Author

wangyuc commented Dec 6, 2024

#315

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

1 participant