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.