0

我收到此异常:未处理的异常:System.Exception:请在特定于平台的项目中调用 CachedImageRenderer.Init 方法以使用 FFImageLoading!发生了

异常发生在外部代码中,而不是我可以单步执行的代码中。

此异常仅发生在 Visual Studio Emulator for Android 应用程序中。

但它在三星 S8 手机上运行良好。

我的 MainActvity 代码如下所示:

        protected override void OnCreate(Bundle savedInstanceState)
    {
        FFImageLoading.Forms.Platform.CachedImageRenderer.Init(false);
        // etc
    }

我尝试了各种版本的 FFImageLoading 库。我目前使用的是最新的 2.4.7.944。

4

1 回答 1

1

在使用 VS Android 模拟器尝试了几款不同的模拟手机并看到它们可以正常工作后,我卸载了无法正常工作的手机并重新安装了它。现在它工作正常。我唯一能说的是arrrrrgh!

于 2019-05-05T15:05:05.720 回答