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

CameraX Error #317

Open
pulmuone opened this issue May 29, 2021 · 0 comments
Open

CameraX Error #317

pulmuone opened this issue May 29, 2021 · 0 comments
Assignees
Labels
binding-issue Java error when attempting to use bound type/method

Comments

@pulmuone
Copy link

pulmuone commented May 29, 2021

Version Information

  • Visual Studio version (16.10):
  • Xamarin.Android version (eg. 11.):
  • Using AndroidX or Support Libraries:
  • If Support Libraries, version
    Xamarin.AndroidX.Camera.Core 1.0.0.5
    Xamarin.AndroidX.Camera.Camera2 1.0.0.5

Describe your Issue:

Sample :
https://github.com/pulmuone/Xamarin.CameraX

Java.Lang.NoSuchMethodError: 'No virtual method getCamera()Landroidx/camera/core/Camera; in class Landroidx/camera/core/SurfaceRequest; or its super classes (declaration of 'androidx.camera.core.SurfaceRequest' appears in /data/app/~~4HOOuVWw8CXqpm7Hpvqn9g==/com.companyname.camerax-RjkqSTFNUlqg7AwkQoyIqg==/base.apk)'
----- fixed
AS-IS : preview.SetSurfaceProvider(viewFinder.CreateSurfaceProvider());
TO-BE : preview.SetSurfaceProvider(viewFinder.SurfaceProvider);
@moljac moljac self-assigned this Jun 28, 2021
@jpobst jpobst added binding-issue Java error when attempting to use bound type/method and removed packages labels Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
binding-issue Java error when attempting to use bound type/method
Projects
None yet
Development

No branches or pull requests

3 participants