I have a problem generating qr code. I used a sample from site: https://www.c-sharpcorner.com/article/generate-barcode-and-qr-code-in-xamarin-android/
I have used the exact same code as in the example but I got a null reference error at this line:
bitmapMatrix = new MultiFormatWriter().encode(message, BarcodeFormat.QR_CODE, size, size);
In my project I have installed the next packages:
Zxing.net
Xamarin.AndroidX.AppCompat
Xamarin.Essentials
Xamarin.Google.Android.Material
Does anyone have a clue why I am getting a null reference?