-
Notifications
You must be signed in to change notification settings - Fork 703
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WP Universal App: ZXingScannerViewRenderer missing #422
Comments
markus, Are you receiving "System.TypeLoadException: Could not load type 'ZXing.Net.Mobile.Forms.WindowsPhone.ZXingScannerViewRenderer' from assembly 'ZXing.Net.Mobile.Forms.WindowsPhone, Version=2.1.47.0, Culture=neutral, PublicKeyToken=null'." After updating to the latest version of ZXing.Net.Mobile.Forms I am now recieving the Android version of this error when I start the app up (because I call the Init() function immediately in my MainActivity) I also updated Xamarin Studio is there possibly a conflict? |
This may not work for you, But After I completely removed the ZXing and reinstalled the packages, ZXing started working again. Edit: I spoke too soon, the error is back. |
I am having the same issue for Android 09-19 21:32:31.147 4051 4051 E AndroidRuntime: at ZXing.Net.Mobile.Forms.Android.Platform.Init () [0x00000] in <30849edafd8e4fbb9f24af588a9bebb0>:0 |
After working on this and several other cascading errors throughout Xamarin.Forms and Xamarin Studio I was able to successfully run my project after all of my NuGet Packages had been updated. Specifically the Xamarin.Android.Support.[etc] packages But this was tricky because they had gotten into a dependency constraint loop that wouldn't allow Sorry... have fun. |
on which version are you now? |
According to my notes I upgraded to 23.4.0.1, however Xamarin Studio is now claiming I have 23.3.0 installed... Which would be very interesting if it auto downgraded. But I have known Xamarin Studio to present incorrect information before... My app is still working either way... So I guess I don't really know what the problem is or how to solve it except just keep beating it, updating things, tweaking settings... Edit: More Info: Xamarin.Forms NuGet has a requirement that Xamarin.Android.Support.[etc] version be =23.3.0. So installing Xamarin Forms is what caused my packages to go down in version. |
I am seeing this issue as well and I dont seem to be able to get around it. I am on the latest stable of XamarinForms (2.3.2.127) using the latest release of ZXing and getting the Android Init error. Any tips. I tried updating everything, I am unable to update the Android support libraries past 23.3.0 due to Forms dependency on it. What order did you do the reference adding? What versions are you on. Like the person above, this completely breaks me. |
Have you tried cleaning the solution (not the project the whole solution) |
Thanks for reporting this issue! Unforunately it took me way too long to respond 😭. Sorry, I apologize! Recently the source code for this project was completely refactored to modernize it. Many PR's were included in this effort, and many bugs were hopefully fixed. Please try out the latest 3.x series of NuGet packages (currently in prerelease). To try and make the project more maintainable in my spare time going forward, I've decided to close all existing issues to start with a clean slate. If you're still experiencing this issue on the newest version, please open a new issue with as much detail as possible. Thank you for your patience and understanding! Happy scanning! |
Hello,
I've installed this package on my Windows 8.1 Universal App but I don't have the Namespace:
ZXing.Net.Mobile.Forms.WindowsUniversal or ZXing.Net.Mobile.Forms.WindowsPhone.
So I cannot call ZXingScannerViewRenderer.Init();
What I'm doing wrong?
Thank you
Markus
The text was updated successfully, but these errors were encountered: