更新 ARCore 后 ARCore ApiTrackableTypeExtensions.cs 错误

ARCore ApiTrackableTypeExtensions.cs error after updating ARCore

我正在将我的项目从 ARCore 1.2(非常确定)更新到 1.6。我为 ARCore (1.6) 导入了最新的统一包,但在控制台中出现以下错误:

Assets/GoogleARCore/SDK/Scripts/Api/ApiTrackableTypeExtensions.cs(31,40): error CS0050: Inconsistent accessibility: return type GoogleARCoreInternal.ApiTrackableType' is less accessible than method GoogleARCoreInternal.ApiTrackableTypeExtensions.GetApiTrackableType(this Type)'

我不知道如何解决这个问题。 Visual Studio 'quick fix' 在这种情况下没有帮助。我曾尝试重新导入 ARCore 1.6,但这没有帮助。

这似乎是一个剩余的文件。删除 /scripts/API 文件夹然后重新导入它更新了该文件夹并修复了错误。