question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Xamarim Forms Android App crashing immediately when FFImageLoading library is added to the project

See original GitHub issue

Description

When adding FFimageLoading to my project, the app immediately crashes with the message “App has stopped working”. The NuGet Package has just been added to the project. No instance or whatsoever has been made. The OnCreate is not even called anymore.

Steps to Reproduce

Installed FFimageLoading via NuGet Package Manager

Expected Behavior

No crash

Actual Behavior

Crash

Basic Information

  • Visual Studio 2017
  • Android_Accelerated_Nougat (Android 7.1 - API 25)
  • Xamarin Forms 2.5.0.121934

Debug Output

Android application is debugging. 01-08 20:21:29.656 I/art (10087): Not late-enabling -Xcheck:jni (already on) 01-08 20:21:29.657 W/art (10087): Unexpected CPU variant for X86 using defaults: x86_64 01-08 20:21:29.709 D/AndroidRuntime(10087): Shutting down VM 01-08 20:21:29.710 E/AndroidRuntime(10087): FATAL EXCEPTION: main 01-08 20:21:29.710 E/AndroidRuntime(10087): Process: com.companyname.Mobile, PID: 10087 01-08 20:21:29.710 E/AndroidRuntime(10087): java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.companyname.Mobile-1/base.apk"],nativeLibraryDirectories=[/data/app/com.companyname.Mobile-1/lib/x86_64, /system/fake-libs64, /data/app/com.companyname.Mobile-1/base.apk!/lib/x86_64, /system/lib64, /vendor/lib64]]] couldn't find "libmonodroid.so" 01-08 20:21:29.710 E/AndroidRuntime(10087): at java.lang.Runtime.loadLibrary0(Runtime.java:984) 01-08 20:21:29.710 E/AndroidRuntime(10087): at java.lang.System.loadLibrary(System.java:1530) 01-08 20:21:29.710 E/AndroidRuntime(10087): at mono.MonoPackageManager.LoadApplication(MonoPackageManager.java:34) 01-08 20:21:29.710 E/AndroidRuntime(10087): at mono.MonoRuntimeProvider.attachInfo(MonoRuntimeProvider.java:42) 01-08 20:21:29.710 E/AndroidRuntime(10087): at android.app.ActivityThread.installProvider(ActivityThread.java:5853) 01-08 20:21:29.710 E/AndroidRuntime(10087): at android.app.ActivityThread.installContentProviders(ActivityThread.java:5445) 01-08 20:21:29.710 E/AndroidRuntime(10087): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5384) 01-08 20:21:29.710 E/AndroidRuntime(10087): at android.app.ActivityThread.-wrap2(ActivityThread.java) 01-08 20:21:29.710 E/AndroidRuntime(10087): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1545) 01-08 20:21:29.710 E/AndroidRuntime(10087): at android.os.Handler.dispatchMessage(Handler.java:102) 01-08 20:21:29.710 E/AndroidRuntime(10087): at android.os.Looper.loop(Looper.java:154) 01-08 20:21:29.710 E/AndroidRuntime(10087): at android.app.ActivityThread.main(ActivityThread.java:6119) 01-08 20:21:29.710 E/AndroidRuntime(10087): at java.lang.reflect.Method.invoke(Native Method) 01-08 20:21:29.710 E/AndroidRuntime(10087): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886) 01-08 20:21:29.710 E/AndroidRuntime(10087): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
EmilAlipievcommented, Jan 9, 2018

your problem should be something else related. probably your project is corrupted. try a clean one to see if it occurs for you or you are testing on an emulator which conflicts your supported architectures CPU variant for X86 using defaults: x86_64

0reactions
chumeanbrocommented, Jan 29, 2018

Fixed this by installing “Google APIs Intel x86 System Image” through the SDK Manager and creating a new emulator with that CPU

Read more comments on GitHub >

github_iconTop Results From Across the Web

Xamarin Forms - Android App Crashes on Physical device
I am building an app on Xamarin Forms Framework and my app crashes when installing on a physical android device.
Read more >
Xamarin.Android application crashes only on release
I am developing an application for ios and Android but I have a strange problem for Android: with the same parameters for the...
Read more >
Xamarin Forms app crashes when replication started on ...
When running armeabi-v7a (32 bit) only everything works, but as soon as you add arm64-v8a (64 bit) the app runs until you start...
Read more >
Xamarin Community Forums - RSSing.com
I am trying to load that image and show it in StackLayout in my UWP app using FFImageLoading library for performance reason as...
Read more >
VS 16.7 Xamarin Android crash on start up in debug
Just upgraded to VS 2019 16.7 and Xamarin Android project that was running fine yesterday is now crashing on startup when Debug build ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found