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,_andmetrics/publishingan_application/part_2-_signing_the_android_application_package/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/)
Related
Error screenshot
I am currently coding in Visual Studio 2022 Community Preview. I googled my problem and there I found that changing the repository to Google would solve the problem, but in my android SDK manager, there is no option for changing the repository.
Any help would be greatly appreciated.
Visual Studio includes an Android SDK Manager that you use to download Android SDK tools, platforms, and other components that you need for developing Xamarin.Android apps.
See Tools -> Android -> Android SDK Manager.
Under Platforms you'll find various Android versions for the emulator and under Tools you can install various tools.
Also
See Tools -> Options -> Xamarin -> Android Settings
and make sure that the Auto Install Android SDKs is checked.
There is a folder path called Android SDK Location, if it's empty you can browse for it in your computer yourself to find it.
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
I have just installed Visual Studio for Mac (On Mac OS X 10.12.1) and I'm trying to target android with no luck in xamarin forms neither native projects. The Android option is greyed.
If I go to Preferences -> SDK Locations -> Android:
Android SDK
Java SDK
Android NDK
are installed and their path is known by Visual Studio (The three checks are green).
Any idea why is this happening?
Thanks.
"The iOS and Android options will be disabled if neither Xamarin.iOS nor Xamarin.Android is installed. If you install those components then these options should be available.
If you look in the about dialog's Show Details page that should indicate what you have installed."
REF
When creating a new project the target platform (Android) is already greyed out so can't proceed.
I have already linked SDK and NDK.
The Android check box will be disabled if you do not have Xamarin.Android installed or the Android addin is disabled in Xamarin Studio.
If you look in the log file (Help - Open Log Directory) it should provide more information.
Run the installer again and check what you want: Xamarin.Android and Xamarin.iOS
The issue has been reported several times in several forums: I have searched all of them and found no answer that works in May 2017, now that Xamarin Universal Installer no longer is provided by Xamarin.com, only Visual Studio. Most answers I've depends on two things: one, that one loads the Android sdk, ndk and Java jdk and links up to them in the Tools Project Option -> Android. While an appropriate answer, this doesn't seem to fix the issue for those who have had it on a PC, like myself. I have also Visual Studio installed but wanted to see the Xamarin Studio. The other parts of the answers I've seen mention the use of Xamarin Universal Installer. Only manual install Xamarin Studio (via its .msi files) are now possible given the Xamarin.com offers.
However, even uninstalling and reinstalling Xamarin Studio--as was recommended in a forum--didn't seem to solve this issue. Normal uninstall via Control Panel of Xamarin Studio doesn't delete the local user info. This is, moreover, shared with Visual Studio. As far as I can see, it is the mixture between Visual Studio in its newest forms, and the Xamarin Studio in its earlier forms, on one and the same Windows PC that causes some configuration issues.
And so the solution seems to be that if you want Xamarin Studio to work on a PC with target platform Android, you should start with a clean PC and begin on the Android sdk and ndk, and the Java jdk, then install Xamarin Studio without installing Visual Studio first. Hopefully though the Visual Studio should be good enough.
Just click on restart button. From Tools > Add Custom Tools > SDK Locations in visual studio.
I've recently installed Visual Studio Community 2015 and I've been following an MSDN tutorial "Build cross-platform apps with Xamarin". When its time to design the look of the app and I select the Main.axml file in the Resources\layout folder, the Android designer fails with:
The installed Android SDK is too old. Version 24.3.4 or newer is required. Please update to the latest version.
I've done a lot of searching and found that one of the newer versions of Android SDK caused the Xamarin Android designer to fail. I did find a version 24.4.1 that suggests this designer problem is fixed.
How do I update this part of Visual Studio (i.e. Xamarin.Android)? Here is a snippet of my install on Windows 7:
Tools --> Options --> Xamarin
Under "iOS Settings" and "Android Settings" there is a link for "Check Now" next to the Updates settings
You might want to update to Beta release if you need the latest components -
Goto VS 2015 -> Tools -> Option -> Xamarin -> Others -> Check Now
They moved the "Check Now" into the harder-to-find Tools/Options/Xamarin/Other. We must always be on guard when dealing with the
Other
In newer Version of Visual studio this option is available in Other node
Goto VS 2015 -> Tools -> Options -> Xamarin -> Other -> Check Now
Here you can choose between Alpha, Beta or Stable versions of xamarin for Visual Studio.
Apparently, my problem was solved after installing SDK Platform for Android 6.0 or API 23. API 24 or higher i.e Android 7.0 (Nougat) didnt run. If still not solved then install SDK Platform for even lower APIs like 22,21 ...
Hope it helps.