Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

using Zxing.Net Mobile for forms does is not recognize

I am new in Xamarin.Forms and I want use the bar code scaner by Zxing. however I install the plugin form nuget: 1)ZXing.Net.Mobile for Forms 2) ZXing.Net.Mobile. -> install it since I read somewhere it would help my problem but its not.

as far as I understood I need to add this line: to the Android project in main Activity

However alotugh I install the packages I am still getting an error of: The type or namespace name 'Andorid' does not exist in the namespace 'ZXing.Net.Mobile.Forms' (are you missing an assembly reference?) ScannerZXing.Android

what can I do? (perofrm clean and rebuild for the project didn't help)

also would like to add that it is added in the referecnes of the projects.

Thanks for the ansewrs.

like image 787
djklasj dsajdkla Avatar asked Oct 14 '25 03:10

djklasj dsajdkla


1 Answers

In my case the reason was that I installed only ZXing.Net.Mobile.Forms. After installing ZXing.Net.Mobile it`s gone. (two libraries need to be installed)

like image 76
Nazar Frankiv Avatar answered Oct 18 '25 02:10

Nazar Frankiv



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!