BottomNavigationBarXF: Keep getting System.InvalidOperationException: Sequence contains no matching element
Can you please document how to use this control? I have looked at the source code which compiles and runs fine, but when I use the nuget package instead, I’m getting a runtime exception.
08-02 01:17:41.571 I/MonoDroid( 8293): UNHANDLED EXCEPTION:
08-02 01:17:41.581 I/MonoDroid( 8293): System.InvalidOperationException: Sequence contains no matching element
08-02 01:17:41.581 I/MonoDroid( 8293): at System.Linq.Enumerable.Single[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x0008c] in /Users/builder/data/lanes/3511/0831d928/source/mono/mcs/class/referencesource/System.Core/System/Linq/Enumerable.cs:1065
08-02 01:17:41.581 I/MonoDroid( 8293): at BottomBar.Droid.ReflectedProxy`1[T].Call (System.String methodName, System.Object[] parameters) [0x00020] in <filename unknown>:0
08-02 01:17:41.581 I/MonoDroid( 8293): at BottomBar.Droid.PageController.SendAppearing () [0x00000] in <filename unknown>:0
08-02 01:17:41.581 I/MonoDroid( 8293): at BottomBar.Droid.Renderers.BottomBarPageRenderer.OnAttachedToWindow () [0x00006] in <filename unknown>:0
08-02 01:17:41.581 I/MonoDroid( 8293): at Android.Views.View.n_OnAttachedToWindow (System.IntPtr jnienv, System.IntPtr native__this) [0x00009] in /Users/builder/data/lanes/3511/400a4fc9/source/monodroid/src/Mono.Android/platforms/android-23/src/generated/Android.Views.View.cs:13912
08-02 01:17:41.581 I/MonoDroid( 8293): at (wrapper dynamic-method) System.Object:f62e0551-38d7-4f66-afe1-60e4a4af9f0d (intptr,intptr)
08-02 01:17:41.581 I/MonoDroid( 8293): [MVID] 4298aaf593114c7e9ca4ac4b529e50c5 4
08-02 01:17:41.581 I/MonoDroid( 8293): [MVID] a3f8a31db4d344b780468ee114c86386 0
08-02 01:17:41.581 I/MonoDroid( 8293): [MVID] dea6c07ac3b4406aacba3e3f945fe846 1,2,3
08-02 01:17:41.621 W/art ( 8293): JNI RegisterNativeMethods: attempt to register 0 native methods for android.runtime.JavaProxyThrowable
08-02 01:17:41.621 D/Mono ( 8293): DllImport searching in: '__Internal' ('(null)').
08-02 01:17:41.621 D/Mono ( 8293): Searching for 'java_interop_jnienv_throw'.
08-02 01:17:41.621 D/Mono ( 8293): Probing 'java_interop_jnienv_throw'.
08-02 01:17:41.621 D/Mono ( 8293): Found as 'java_interop_jnienv_throw'.
The thread 'Unknown' (0x4) has exited with code 0 (0x0).
An unhandled exception occured.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 2
- Comments: 16 (7 by maintainers)
Commits related to this issue
- Fix Sequence contains no matching element For more details: https://github.com/thrive-now/BottomNavigationBarXF/issues/7 — committed to Korayem/BottomNavigationBarXF by Korayem 8 years ago
To understand the difference, I added the following to both projects, mine and yours, to compare the difference and find why it’s failing to find
methodName == SendAppearing:My project:
Your Project
The difference was here:
and here:

So I think to fix this, you need to change ANY line to use
.Contains()after prefix it with.dot along with==inReflectedProxy.cs@malokuS sorry for the delay, we’re on it 😃
I’m still getting this using the NuGet Package ThriveGmbH.BottomNavigationBar.XF 1.0.0.
@tirolo done https://github.com/thrive-now/BottomNavigationBarXF/pull/14 👍