BarcodeScanner.Mobile
BarcodeScanner.Mobile copied to clipboard
package does not exist error in Maui App
Describe the bug
package does not exist error in Maui App. The number of bugs is 38. All the missing packages start from com.google.android.gms
To Reproduce Steps to reproduce the behavior: Create new Maui App and install barcodescanner.mobile.maui. Now debug the solution.
Expected behavior The app should build and run on the emulator.
Smartphone (please complete the following information):
- Device: Android Emulator (Pixel 5- API-31)
- OS: Android 12
- Version : Visual Studio 17.3 stable version on Windows
Hi @HobDev
Did you install Google play services in your Android SDK tool?
Hi @JimmyPun610 Yes, I installed Google play services from Android SDK tool but the errors are still there.
Hi @JimmyPun610 Yes, I installed Google play services from Android SDK tool but the errors are still there.
Check that you have this in your csproj file:
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0-android'"> <PackageReference Include="Xamarin.Google.MLKit.BarcodeScanning" Version="116.1.2.5" /> </ItemGroup>
Check that you have this in your csproj file:
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0-android'"> <PackageReference Include="Xamarin.Google.MLKit.BarcodeScanning" Version="116.1.2.5" /> </ItemGroup>
The app build successfully after adding the above package in the csproj. Thank you @gkenaston
Does the the package Xamarin.Google.MLKit.BarcodeScanning also required for iOS project.
Does the the package
Xamarin.Google.MLKit.BarcodeScanningalso required for iOS project.
No, it is an Android binding library