Reputation: 16383
After installing the AppCenter SDK and trying to initialize it in Xamarin forms using this method:
AppCenter.Start("ios={Your App Secret};android={Your App Secret};uwp={Your App Secret}", typeof(Analytics), typeof(Crashes));
I got this error:
The type or namespace 'Start' does not exist in the namespace 'AppCenter' (are you missing an assembly reference?)
Upvotes: 3
Views: 1477
Reputation: 281
For a Xamarin Forms app, please make sure the packages are installed in all the projects that reference any libraries. The error that you see is mostly because the packages aren't added to all the projects.
Upvotes: 2
Reputation: 16383
Even though I was importing using Microsoft.AppCenter;
for some reason it wasn't resolving.
I had to use:
Microsoft.AppCenter.AppCenter.Start(...);
Upvotes: 11