How to add another Android API to Xamarin on Visual Studio - android

Changing the target framework for the an Android project in Visual Studio gives me a lesser option than using Xamarin Studio editing the same project.
Visual Studio
Xamarin Studio
How can I add a new API, such as 18 or 21, which is missing from the drop down list of available frameworks in Visual Studio?

Open project file (.proj) in text editor and edit directly. Look for this:
<TargetFrameworkVersion>v4.2</TargetFrameworkVersion>

Related

Can Android Studio and Visual Studio safely share the same Android SDK?

I'm trying to free up some disk space and so would like one copy of the Android SDK only, aside from not wanting to maintain two of them. Currently I have one installed for each Android Studio and Visual Studio.
I noticed that there is now a separate, Xamarin specific Android SDK manager that Visual Studio uses in place of the one provided by the Android SDK itself.
Also, Visual Studio's Android NDK is located at "C:\ProgramData\Microsoft\AndroidNDK". I don't recall installing it there specifically (probably used a default location), but suppose Android Studio could be pointed at it as well.
Can Android Studio and Visual Studio safely share the same Android SDK?
The answer is Yes, I have done this for a long time and it works fine.
In Visual Studio, Xamarin Android SDK default location is:
C:\Program Files (x86)\Android\android-sdk
C:\ProgramData\Microsoft\AndroidNDK64
In Android Studio, SDK default location is:
C:\Users\username\AppData\Local\Android\Sdk
C:\Users\username\AppData\Local\Android\Sdk\ndk-bundle
Use Visual Studio Android SDK only
You could refer to my answer:
Open Android Studio, go to File -> Project Structure
Change the SDK location to your Visual Studio SDK Location
a. Change it to Xamarin Android SDK Location: C:\Program Files (x86)\Android\android-sdk
b. There is a problem when you change the SDK Location: cannot contain whitespace. You could open CMD as Administrator and type: mklink /J C:\Program-Files-(x86) "C:\Program Files (x86)", like this.
c. Then you could change the SDK Location, effect.
Use Android Studio Android SDK only
You just need change Xamarin Android settings as the above picture. You could find it in:
Tools -> Options -> Xamarin -> Android Setting
It is that new visual studio specific sdk manager I'm worried about.
As #Muhammad said, it won’t broke anything.
Yes, you can. There is no problem at all. You can specify custom SDK path in both Android studio and Visual studio.
Yes for sure, when install visual studio 2017 you can mark in sdk global in individual components tab, and at the end its a path you referring to it in visual studio and android studio.
If you talk about manage this sdk, visual studio 2015 and older versions of visual studio 2017 uses same android sdk manager but lately there is a new sdk manager related to visual studio only not shared between android studio and visually studio

No template when I create a new project on android studio

So I downloaded yesterday visual studio and I wanted to create a new android project in Android studio but I couldn't find any template instead I have frameworks and libraries to choose from (as you can see from the screenshot).
I think you downloaded wrong editor. It's IntelliJ IDEA instead of Android studio. Please refer to this link for android studio
https://developer.android.com/studio/index.html

Xamarin android deployment using Visual Studio

I am using visual studio community edition and i am try to deploy an application by following the tutorial
https://developer.xamarin.com/guides/android/deployment,_testing,_and_metrics/publishing_an_application/part_2_-_signing_the_android_application_package/
When it comes to second step "Archive" option is missing in my visual studio .
Should we enable this option from some settings or its going to be there by default?
Also from https://www.xamarin.com/compare-visual-studio i can see that Visual Studio Community Edition can be used for deploy the apps to private and public stores
So how can i do Archive option using VS 2015 Community edition
You are on an old version of Xamarin and thus the Archive options are different. You can view them here:
https://developer.xamarin.com/guides/android/deployment,testing,_and‌​metrics/publishing‌​an_application/part_‌​2-_signing_the_andro‌​id_application_packa‌​ge/visual-studio-xa-‌​4.2.6-to-6.1/
However I would recommend that you update your Xamarin for Visual Studio tooling via (Tools -> Options -> Xamarin -> Other) to the latest stable and follow the guide you linked above(https://developer.xamarin.com/guides/android/deployment,_testing,_and_metrics/publishing_an_application/part_2_-_signing_the_android_application_package/)

Important component that we should have them to use in the android studio

I have android studio 1.3 and when I open the SDK Manager I see many components for each API in that. For the API23, for the API22, for the API21 and etc.
The components like the platforms23 and etc or Android SDK Tools23 or for the lower APIs or the Android SDK Build Tools and etc ......
Really if we want to use the IDE like android studio 1.3 and creating a project with Minimum API equal to the 9 What is needed to do this? When I see the SDK Manager window,I see many components in that to install, I want know the important components for creating a project in IDE like android studio 1.3.
Please say me the their name in here. Because I use android studio 1.3 and I have many components in the sdk folders. But still I do not know that which folders are important for creating a project in android studio.

How can I disable the sdk update search when launch the android studio

I use a sdk folder that it supports until the API17, because I do not need the higher API. I have android studio 1.3 and but when I launch the android studio wizard and I want to create a new project
I see the following annoying Message. How can I disable the sdk update search when launch the android studio?

Categories

Resources