首页 > 解决方案 > 无法在 Google Cloud App Engine 上加载共享库 libSkiaSharp

问题描述

我有一个在 Google Cloud App Engine 上运行的 .Net Core 3.1 Web 应用程序。当我尝试使用 Skia 2.80.2 时,出现以下错误:

System.DllNotFoundException: Unable to load shared library 'libSkiaSharp' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibSkiaSharp: cannot open shared object file: No such file or directory

我添加了 nuget 包 SkiaSharp.NativeAssets.Linux 并尝试将 runtimes\linux-x64\native\libSkiaSharp.so 作为内容添加到项目中。

在 app.yaml 中设置 LD_DEBUG 对日志没有影响:

env_variables:
    LD_DEBUG: 'all'

标签: cloudskia

解决方案


推荐阅读