Xamarin.Forms (2.5.0.122203) uses Zxing.Net.Mobile.Forms (2.3.3) when the Android end inexplicably crashes

Source: Internet
Author: User

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:

    1. Edit Xxx.csproj

Adding nodes in PropertyGroup: <assettargetfallback>$ (assettargetfallback);net46;</assettargetfallback>

<PropertyGroup>     <targetframework>netstandard1.  4</TargetFramework>      <assettargetfallback>$ (assettargetfallback); net46;</ Assettargetfallback> </PropertyGroup>

    1. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.