Reputation: 671
i want to create the barcode reader app, and when i try to add ZXing.Net.Mobile.forms library and compile the code below then it is showing me errors.
MainActivity.xamal.cs `
private async void Button_Clicked(object sender, EventArgs e)
{
var scan = new ZXingScannerPage();
await Navigation.PushAsync(scan);
scan.OnScanResult += (result) => { Device.BeginInvokeOnMainThread(async () =>
{
await Navigation.PopAsync();
barcode.Text = result.Text;
}); };
}
Errors
When i try to compile the project these erorr are coming`
Upvotes: 0
Views: 379
Reputation: 1012
You should have Zxing.Net.Mobile.Forms
installed in all three projects. Android has the additional requirement of needing ZXing.Net.Mobile
installed. Install that in your Android project and it should fix your issue.
Upvotes: 3