Friday, October 20, 2017

Android 8 and condition `ji' not met

A quick tips/workaround. I'm sure Xamarin will address this issue shortly.

Problem


The app crashes on start up on Android 8 with the error message

[] * Assertion at /Users/builder/jenkins/workspace/xamarin-android/xamarin-android/external/mono/mono/mini/mini-arm64.c:878, condition `ji' not met


Updated solution (the real solution)


It was actually the usage of the dynamic keyword that caused the crash...

Solution (kept for historical reason)


Uncheck "Use Shared Mono Runtime" under "Android Build".