Ffimageloading: Please call CachedImageRenderer.Init method in a platform specific project to use FFImageLoading!

Created on 6 Jun 2019  路  2Comments  路  Source: luberda-molinet/FFImageLoading

Description

Im using the last stable version for ffImageLoading, SkiaSharp and Xamarin Forms. I have the "inits" for platform especific (MainActivity and AppDelegate). In Android works, but in IOS it shows this error :
Unhandled Exception:

System.Exception: Please call CachedImageRenderer.Init method in a platform specific project to use FFImageLoading! occurred

Steps to Reproduce

Update all to last versions and try to run in iOS

Xamarin.Forms iOS question

Most helpful comment

Hi Daniel, thank you for the quick answer. I resolved the issue. The problem was that the inits were called after the initis of the APP:
global::Xamarin.Forms.Forms.Init();

All 2 comments

  • Make sure inits are called before any usage of FFImageLoading code
  • Make sure you added all FFImageloading packages to all projects (shared & platform specific)
  • Make sure you have same package versions in all projects
  • Remove bin&obj directories
  • Reopen solution & build

... and let me know.

Hi Daniel, thank you for the quick answer. I resolved the issue. The problem was that the inits were called after the initis of the APP:
global::Xamarin.Forms.Forms.Init();

Was this page helpful?
0 / 5 - 0 ratings

Related issues

HugoTruffe picture HugoTruffe  路  4Comments

K232 picture K232  路  3Comments

angelru picture angelru  路  4Comments

matheusvelloso picture matheusvelloso  路  4Comments

Pinox picture Pinox  路  5Comments