Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Error removing ZXingScannerFragment

$
0
0

I get an error when trying to remove a ZXingScannerFragment from the layout where I placed it. I have seen some comments by Jonathan Pryor on Stack Overflow and such pointing at a cause of similar problems, but with no solutions.

My error is:

unhandled exception: System.NotSupportedException: Unable to activate instance of type ZXing.Mobile.ZXingScannerFragment from native handle 28700019 ---> System.MissingMethodException: No constructor found for ZXing.Mobile.ZXingScannerFragment::.ctor(System.IntPtr, Android.Runtime.JNIHnadleOwnership) ---> Java.Interop.JavaLocationException: Exception of type 'Java.Interop.JavaLocationException'

I also get a fairly meaningless stack trace that points to the fragment.OnPause() function as the culprit.

Does anybody know how to fix this? I'm guessing jonp has the answer.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>