命名空间 AppCenter 中不存在 Start

Start does not exist in the namespace AppCenter

安装 AppCenter SDK 并尝试使用此方法在 Xamarin 表单中对其进行初始化后:

AppCenter.Start("ios={Your App Secret};android={Your App Secret};uwp={Your App Secret}", typeof(Analytics), typeof(Crashes));

我收到这个错误:

The type or namespace 'Start' does not exist in the namespace 'AppCenter' (are you missing an assembly reference?)

尽管出于某种原因我正在导入 using Microsoft.AppCenter;,但它没有解决。

我必须使用:

Microsoft.AppCenter.AppCenter.Start(...);

对于 Xamarin Forms 应用程序,请确保在引用任何库的所有项目中都安装了包。您看到的错误主要是因为包没有添加到所有项目中。