Home:ALL Converter>Can Android Studio and Visual Studio safely share the same Android SDK?

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

Ask Time:2018-06-19T00:41:20         Author:samus

Json Formatter

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.

Author:samus,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/50914019/can-android-studio-and-visual-studio-safely-share-the-same-android-sdk
York Shen :

\n Can Android Studio and Visual Studio safely share the same Android SDK?\n\n\nThe answer is Yes, I have done this for a long time and it works fine.\n\n\n\nIn Visual Studio, Xamarin Android SDK default location is:\n\nC:\\Program Files (x86)\\Android\\android-sdk\n\nC:\\ProgramData\\Microsoft\\AndroidNDK64\n\n\nIn Android Studio, SDK default location is:\n\nC:\\Users\\username\\AppData\\Local\\Android\\Sdk\n\nC:\\Users\\username\\AppData\\Local\\Android\\Sdk\\ndk-bundle\n\n\nUse Visual Studio Android SDK only\n\nYou could refer to my answer:\n\n\nOpen Android Studio, go to File -> Project Structure\nChange the SDK location to your Visual Studio SDK Location\n\n\na. Change it to Xamarin Android SDK Location: C:\\Program Files (x86)\\Android\\android-sdk\nb. 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.\nc. Then you could change the SDK Location, effect.\n\n\n\nUse Android Studio Android SDK only\n\nYou just need change Xamarin Android settings as the above picture. You could find it in:\n\nTools -> Options -> Xamarin -> Android Setting\n\n\n\n It is that new visual studio specific sdk manager I'm worried about. \n\n\nAs @Muhammad said, it won’t broke anything.",
2018-06-19T02:43:21
Bertram Gilfoyle :

Yes, you can. There is no problem at all. You can specify custom SDK path in both Android studio and Visual studio.",
2018-06-18T16:48:20
yy