question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

package does not exist error in Maui App

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
JimmyPun610commented, Aug 16, 2022

Does the the package Xamarin.Google.MLKit.BarcodeScanning also required for iOS project.

No, it is an Android binding library

1reaction
HobDevcommented, Aug 16, 2022

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error publishing .NET MAUI project: the target ...
I've tried creating a separate new, default MAUI project in the new preview - this publishes ok and (as far as I can...
Read more >
New Visual Studio 2022 Install - Cannot publish any .NET ...
It's impossible to publish any .NET MAUI Blazor app including one straight from the project template. It simply does not work with the...
Read more >
Troubleshoot known issues - .NET MAUI
Can't locate the .NET MAUI workloads · Platform version isn't present · Type or namespace 'Default' doesn't exist · Xcode isn't currently installed ......
Read more >
MAUI solution with apps and DLLs fails to generate ...
Hello! When I package the DLL in addition to the application in the MAUI solution, it fails with the following error.
Read more >
Some issue with the latest VS 2022 17.3 Preview 4
We are implementing a new Android application, using .net. We are using not Xamarin version, but the new project templates that come with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found