Xamarin Forms AppCenter SDK Namespace Error - xamarin

I am trying to add the AppCenter SDK functionality to my Xamarin Forms app (iOS and Android) and am following the documentation from here.
I am experiencing an issue with the namespaces not seeming to line up quite right. Here is a screenshot with some comments:
As you can see, AppCenter.Start(...) does not appear to exist but Microsoft.AppCenter.AppCenter.Start(...) does.
The shared project for my Xamarin Forms app is a .NET Standard 2.0 shared lib.
Any thoughts on what could be causing this?
Additional setup screenshots:

As you can see the screenshot attached, AppCenter is a class under Microsoft.AppCenter namespace, so what you are writing is correct only Microsoft.AppCenter.AppCenter.Start(...)
You can find the same by pressing F12 on AppCenter in AppCenter.Start(...)

Related

Migrate native Xamarin Android app to .Net MAUI

I have a Native Xamarin Android app which is running in Target SDK 30(Android 11). I would like to migrate it into .Net MAUI. I am looking for the steps to do that.
Unable to find a documentation related to that.
Here are two links for your reference.
The article is about Migrating Xamarin.Android Applications to.NET 6. And this about Migrating from Xamarin.Android to.NET 7. It contains two Word docx files NavigationGraph.docx which describes the project and Converting a Xamarin.Android to.Net7.docx describes how to go about the detailed manual migration.
Hope it could help you.
Is there a particular reason why you want to migrate to Maui? Your tags on your post don't indicate any other platform other than Android. If you only want to support Android then I can't think of any reason why you would consider Maui.
Please disregard if that is not the case.

Xamarin Native Views in XAML doesn't show on IOS

I tried to add a native view in a xamarin forms xaml file.
I have downloaded the example code from this page:
https://learn.microsoft.com/en-us/xamarin/xamarin-forms/platform/native-views/xaml
Everything works file for Android and UWP. But for IOS, it can't display the native view, just a blank view.
I tried every example I can find on that page , turning out to the same result.
I'm using the latest version of VS 2017 and Xamarin.
Thanks for any suggestion.
This issue was caused by using Xamarin.forms 3.0.0, and a service release will be available for this soon.
Refer to here.

Removing Windows Phone target from Xamarin.Forms app

I was trying to add a web service reference to a Xamarin.Forms app when I noticed that there was no "Add service reference" option available when right-clicking the project's References. After some digging around I found that apparently you cannot add a web service reference to a project that targets Windows Phone 8. I am fine with removing Windows Phone 8 from my app as I really only care about Android and iOS. However, when I try to actually remove it, there doesn't seem to be an option to choose whether or not I want to target WP8 as you can see in the picture:
So how do I actually remove Windows Phone 8 from my app?
Thanks in advance.
Removing all Xamarin.xxx targets then uninstalling Xamarin.Forms from PCL and finally adding Xamarin.Android and Xamarin.iOS targets again seems to fix the problem.

xamarin.forms android application stuck in deployment

I am creating cross platform app in xamarin.forms.but when i try to deploy it in xamarin android player.its just stuck there..i had found same question but still no proper solution..please help me..
The Xamarin Android Player has actually been deprecated, it was never fully released and likely has a few bugs.
Try using the built in visual studio emulator instead:
https://developer.xamarin.com/guides/android/deployment,_testing,_and_metrics/debug-on-emulator/visual-studio-android-emulator/

MvvmCross - 4.0 Beta 3 doesn't work with new UWP project?

I started a new Windows 10 UWP project today and used Nuget to add references for the beta version of MvvmCross. After adding references to MvvmCross and some HotTuna plugins (like StarterPack), all I get is the following:
I seem to be missing some stuff because I'm unable to inherit from MvxStorePage. Also, when I added HotTune to my Android project, a ToDo.txt file was added with instructions, but in the UWA project, I didn't get any of those extra files.
Am I doing something wrong?
I don't think you can inherit from MvxStorePage, because it doesn't exist in the namespace available to UWP project.
In UWP project, the Cirrious.MvvmCross.WindowsUWP namespace is used. You can check it in Visual Studio in "Class View (Ctrl + Shift + C)". And the only available view is MvxWindowsPage as below.
Based on the Universal Windows App tutorial on GitHub, the MvxWindowsPage is recommended to be used in universal app. Note that, the tutorial is for Universal Windows app for 8.1, but it's same to make it work in a win10 UWP app. Just change the namespace from Cirrious.MvvmCross.WindowsCommon.Views to Cirrious.MvvmCross.WindowsUWP.Views. By doing that, I didn't get any problem to inherit from MvxWindowsPage.

Resources