0

I've recently upgraded my Xamarin Android project to .NET 8 (net8-android). My project still uses MainActivity and has not yet been upgraded to MAUI. While most of the features work fine, the QR code scanning feature is failing. I'm using ZXing.Net.Mobile for QR code scanning, and it seems to be incompatible with net8-android.

Has anyone encountered this issue or can suggest a solution for making ZXing.Net.Mobile work with .NET 8 for Android? Alternatively, can anyone recommend a different QR code scanning library that is compatible with .NET 8 for Android?

2
  • I didn't know you could "upgrade to .NET 8" other than upgrading to MAUI. That said, I guess I'm not surprised that you have an incompatibility. Commented Aug 13, 2024 at 15:28
  • ZXING requires the old supportv4 and so on. Im also searching for a replacement, that uses AndoidX and NET8 Commented Jan 9 at 15:45

1 Answer 1

0

I have encountered this same problem recently when migrating a Xamarin.Android app to .NET 8 (net8-android).

I first tried installing the newest supported ZXing.Net.Maui nuget package by the same developer and found that unfortunately also didn't work because it uses a .NET Maui package in the background.

After some searching I discovered that there is a Beta version of ZXing.Net.Mobile released that uses AndroidX and is supported by .NET8 (Version 3.1.0-beta2). This seems to work great for me.

I hope this helps!

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.