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

MlKitAnalyzer missing #839

Closed
haavamoa opened this issue Feb 16, 2024 · 1 comment
Closed

MlKitAnalyzer missing #839

haavamoa opened this issue Feb 16, 2024 · 1 comment

Comments

@haavamoa
Copy link

Xamarin.Android Version (eg: 6.0):

net8.0-android

Operating System & Version (eg: Mac OSX 10.11):

macOS Sonoma 14.2.1

Google Play Services Version

Xamarin.Google.MlKit.BarcodeScanning" Version="117.2.0"

Describe your Issue

I am trying to build a barcode scanning app using CameraX and MLKit barcode scanning. Following this guide, I am unable to proceed from here.

I am faced with an issue where I am unable to find MlKitAnalyzer.
image

Relevant information

Add relevant project settings from *.csproj file:

Packages used:

  <ItemGroup>
    <PackageReference Include="Xamarin.AndroidX.Camera.Camera2" Version="1.3.1" />
    <PackageReference Include="Xamarin.AndroidX.Camera.View" Version="1.3.1" />
    <PackageReference Include="Xamarin.Google.Android.Material" Version="1.10.0.2" />
    <PackageReference Include="Xamarin.Google.MlKit.BarcodeScanning" Version="117.2.0" />
  </ItemGroup>

Minimal Repro Code Sample

https://github.com/haavamoa/CameraXSamples/tree/master/CameraXMlKit

Steps to Reproduce (with link to sample solution if possible):

  1. Fork repository
  2. Try to build CameraXMlKit

Include any relevant Exception Stack traces, build logs, adb logs:

MainActivity.cs(46,31): Error CS0246 : The type or namespace name 'MlKitAnalyzer' could not be found (are you missing a using directive or an assembly reference?)

@moljac
Copy link
Member

moljac commented Apr 30, 2024

@haavamoa

Thanks for the feedback and sorry for late reply.

According to

https://developer.android.com/reference/androidx/camera/mlkit/vision/MlKitAnalyzer.Result

MlKitAnalyzer is in androidx.camera:camera-mlkit-vision artifact which is not bound yet:

https://www.nuget.org/packages?q=androidx.camera

https://maven.google.com/web/index.html?q=androidx.camera#androidx.camera:camera-mlkit-vision

It is not bound, because it is in preview.

Closing this issue. Please open issue when package is released as stable version.

Thanks

@moljac moljac closed this as completed Apr 30, 2024
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