Ffimageloading: Initialize failed on Xamarin.Forms Android

Created on 20 Jul 2018  路  2Comments  路  Source: luberda-molinet/FFImageLoading

Description

Run time error thrown on Android device using the Latest version of FFImageLoading.
Tested on Android 4.4 (API 19) and Android 8.0 (API 26) both is reproducible.

The project is created right away using Visual Studio Xamarin Forms portable project template.

Method `FFImageLoading.Forms.CachedImage.set_IsRendererInitialized(bool)' is inaccessible from method `FFImageLoading.Forms.Platform.CachedImageRenderer.Init(System.Nullable`1<bool>)'

Steps to Reproduce

Expected Behavior

App starts.

Actual Behavior

App crashes

Basic Information

  • Version with issue: 2.4.3.840
  • Last known good version: 2.3.6
  • Platform: Xamarin.Forms 3.1.0.63723 (Android)

Reproduction Link / Code

MainActivity.cs (Android project)
```C#
protected override void OnCreate (Bundle bundle)
{
Instance = this;

TabLayoutResource = Resource.Layout.Tabbar;
ToolbarResource = Resource.Layout.Toolbar; 

base.OnCreate (bundle);
this.SetTheme(Resource.Style.Theme_Design_Light);
FFImageLoading.Forms.Platform.CachedImageRenderer.Init(false);

global::Xamarin.Forms.Forms.Init (this, bundle);
LoadApplication (new Foobar.App ());

}
```

question

Most helpful comment

Thanks @daniel-luberda ,
For most cases after updating library, I did Clean/Rebuild and it will work.
But this actually requires removing bin/obj. Problem solved

All 2 comments

  • Make sure you have the same FFImageLoading version installed in all your projects
  • Remove all bin/obj folders then rebuild.

Thanks @daniel-luberda ,
For most cases after updating library, I did Clean/Rebuild and it will work.
But this actually requires removing bin/obj. Problem solved

Was this page helpful?
0 / 5 - 0 ratings

Related issues

astralmaster picture astralmaster  路  28Comments

LeoJHarris picture LeoJHarris  路  22Comments

vlkam picture vlkam  路  21Comments

lecnierfreeman picture lecnierfreeman  路  49Comments

stopiccot picture stopiccot  路  17Comments