How can I find Xamarin.Android v4 Support in my Properties? - c#

I'm watching a Xamarin tutorial on YouTube https://www.youtube.com/watch?v=6Jx7ZNZL9dk&list=PLCuRg51-gw5VqYchUekCqxUS9hEZkDf6l and I've hit a brick using Visual Studio.
I've successfully downloaded Xamarin and Xamarin Android Player for the phone emulators.
However, in the video, it tells me to change the Minimum Android Target to one of the many Xamarin.AndroiD v4.1 Support options. I have not got any of the Xamarin options in my drop down list.
This dropdown menu in my Properties
Perhaps I haven't installed something that enables the Xamarin options to be visible. Help, please

You need to install the other API levels that you want as your minSdkVersion inside your Android SDK Manager to see more in this dropdown. https://developer.xamarin.com/recipes/cross-platform/ide/launch_sdk_manager/#Launch_SDK_Manager_from_Visual_Studio

Related

Android forms previewer renderer instead of the usual preview

I just created a mobile app with xamarin.forms and I wanted to start, by making the navigation of the application. Upon creating a content page the previewer ends up not showing anything, apart from a text saying:
Android forms previewer renderer instead of the usual preview.
I'm using Visual Studio 2019 and I have the nugets all updated.
After trying a bunch of stuff I ended up creating like 5 or more projects and somehow the previewer on the last on is working but on the other ones it just ain't.

Can't Uncheck Windows 8 Target in Xamarin Project

I have a Xamarin Cross Platform App in VS2017. I'm trying to add WCF service references and it seems I need to be able to uncheck Windows 8 and Windows Phone 8.1 from the list of Targets. However, I'm unable to do so.
When I right click on the project and choose properties I see this:
Project Properties showing Windows 8 and Windows Phone 8.1 as targets
When I click the "Change..." button I only see these options:
Change Targets options that don't include Windows 8, or Windows Phone 8.1
The "Install Additional Targets" link just takes me here: (Not helpful)
https://www.microsoft.com/net/download/visual-studio-sdks
Any idea how I can remove these targets and start making use of my WCF web services?
Thanks in advance!
Thanks for your comment Hans.
For anyone else running into the same problem with adding a Service Reference I followed these steps, which don't make any sense, but they worked:
Right click on the Xamarin project and choose Manage NuGet Packages. Uninstall Xamarin Forms.
Close and re-open Visual Studio.
Right click on the Xamarin project and choose Properties. Click the "Change..." button under Targeting. The .NET Framework dropdown was automatically set to 4.5 for me. I changed it to 4.6. Click OK. (Mine still said 4.5 on the properties window, but that's OK)
Close and re-open VS.
Go back to Manage NuGet Packages and reinstall Xamarin Forms.
Close and re-open VS.
Viola. Magic. I can now add Service References.

XAML previewer for Visual Studio 2015. Is it available or are there any third party alternatives?

I am coming from android studio and am really missing the preview feature when editting XML code.
The Xamarin website says this:
https://developer.xamarin.com/guides/xamarin-forms/xaml/xaml-previewer/
I find it essential to use the XML preview because I am still a beginner and learning.
Is there any way this can be done? Perhaps any third party apps if they exist?
Thanks In advance
There some alternatives to Xamarin's own XAML previewers, but it is unclear whether those third parter alternatives would support XAML themes.
Gorilla Player
enter image description here
This one is particularly good for previewing the XAML live simultaneously across multiple platform. I think its available on windows but the level of integration with visual studio remains unclear. However, as their download page contains link for windows, it should support it.
You can access it from this link:
http://gorillaplayer.com
XenForms
XenForms is another promising Xamarin.Forms. You can Load, Edit, and Save XAML. This is the first WYSIWYG UI designer for Xamarin.Forms. This tool definitely support windows as a developing platform and windows phones. Unfortunately, it does NOT support drag and drop. Another great feature is that is it has some support for c# user interface as well as the XAML markups.www.xenforms.com
You can check Xamarin's own previewer which is integrated with Visual Studio. Please update your xamarin to latest installation. You may also need to rebuild the solution and then open/reopen the XAML file for preview. For details please check my blog post here.

What is the proper way of installing Xamarin because I am getting an error every time that I try to start

I am trying to develop my first Android/iOS app using Xamarin, however every time that I try to create a new project and open up the Main.axml in the Resources -> Layout folders, I get an error stating that "Something went wrong"
Something Went Wrong
I have tried re-installing Visual Studio as well as Xamarin but I have had no luck. Any help is greatly appreciated!
Install the Android SDK. You can get it from here
If you have already installed the Android SDK, you might need to (Inside Visual Studio) go to Tools -> Options, in the left side on that new window that opens Expand Xamarin. Click on Android Settings and Make sure all the Locations are set for Java Development, Android SDK, and NDK Location. Point your Android SDK location to where you installed it.

Xamarin based apps not showing in the emulator for iOS, Droid and Windows phone

I am using the latest build of VS 2015 with update 2 which has the Xamarin Framework installed as well. I am following this example here
I noticed that my code with the current framework that I have installed doesn't support this line global::Xamarin.Forms.Forms.Init(); shown in the windows phone section in part 2 here of the documentation. Neither does it support the PhoneCallTask class on point #27 in part 1
I am having a problem figuring out what Init takes as a parameter in global::Xamarin.Forms.Forms.Init();. Where can I find an example of what I should pass in of type IActivatedEventArgs?
Its not just the app in the Windows emulator that doesn't show anything on the emulator screen like in the screenshots. The app doesn't show any UI on the Droid or iOS emulators too.
I landed on these pages from here, so I assumed the examples showed to be fit for the latest release of VS2015. The documentation seems outdated for the latest framework here, or am I looking in the wrong place?

Categories

Resources