Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Xamarin Forms Android: 'System.Runtime.Serialization.dll.so' not found

$
0
0

Hi all,
I don't know when this problem started because it appears only on some devices :( BTW, I've changed my project to netstandard in the meantime (2.0), but the error appeared already before. Currently I know of 2 configurations:

  • Samsung S3 Mini, Android 4.1.2 (Fortunately this is my own test device so I could test around)
  • Samsung S6, Android 6.0

When I start the app, the splash screen appears and then the app crashes. An all other androids (so far), everything works fine, regardless whether physical device or emulator. Therefore I don't know when this error first appeared.

I see that also my Xamarin Forms code is executed, but still only shows my splash screen and crashes after completing the OnAppearing of my Rootpage. Error message is:
Java.Lang.NoSuchMethodError
no method with name='isInLayout' signature='()Z' in class Landroid/view/ViewGroup

Debugger shows these lines at the bottom:
[Mono] AOT: image 'System.Runtime.Serialization.dll.so' not found: Cannot load library: load_library[1093]: Library '/data/data/myapp/lib/libaot-System.Runtime.Serialization.dll.so' not found
[Mono] AOT: image '/usr/local/lib/mono/aot-cache/arm/System.Runtime.Serialization.dll.so' not found: Cannot load library: load_library[1093]: Library '/data/data/myapp/lib/libaot-System.Runtime.Serialization.dll.so' not found

I already cleaned my solution and deleted bin and obj folders, restarted Visual Studio (for Mac). No changes.

I have also check the beginning of the debug output. Error messages start with
[Mono] AOT: image 'mscorlib.dll.so' not found: Cannot load library: load_library[1093]: Library '/data/data/myapp/lib/libaot-mscorlib.dll.so' not found
[Mono] AOT: image '/usr/local/lib/mono/aot-cache/arm/mscorlib.dll.so' not found: Cannot load library: load_library[1093]: Library '/data/data/myapp/lib/libaot-mscorlib.dll.so' not found

I've searched around for this error. I've found this reply (same here) because in some cases I got the same errors like the thread opener. But uninstalling Mono and Xamarin Support on the test device is not an option for me, because my app is already in the store (and works fine on 99% of all devices) and currently I'm lucky to have a test device with the same problem as users in the wild.

Anyone any ideas?

Many thanks!


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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