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
You could refer to my answer:
Open Android Studio, go to File
-> Project Structure
Change the SDK location to your Visual Studio SDK Location
C:\Program Files (x86)\Android\android-sdk
CMD
as Administrator and type: mklink /J C:\Program-Files-(x86) "C:\Program Files (x86)"
, like this.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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With