Xamarin.Forms (2.5.0.122203) uses Zxing.Net.Mobile.Forms (2.3.3) when the Android end inexplicably crashes
The problem, which has been torturing for nearly one months, has finally been solved, and of course it is hoped that the author will support. NET Standard as soon as possible.
Symptom: New Netstandard-based Xamarin.Forms project, the Android side crashes after installing the Zxing.Net.Mobile.Forms (2.3.3) plugin via NuGet.
GitHub problem Address: https://github.com/Redth/ZXing.Net.Mobile/issues/578
The solution is as follows:
- Edit Xxx.csproj
Adding nodes in PropertyGroup: <assettargetfallback>$ (assettargetfallback);net46;</assettargetfallback>
<PropertyGroup> <targetframework>netstandard1. 4</TargetFramework> <assettargetfallback>$ (assettargetfallback); net46;</ Assettargetfallback> </PropertyGroup>
- Clean projects, especially Android projects
Xamarin.Forms (2.5.0.122203) uses Zxing.Net.Mobile.Forms (2.3.3) when the Android end inexplicably crashes