Install android sdk for xamarin mac

broken image
broken image

Be sure to also install NDK, though, as that's what we will need to deploy Xamarin applications. Now download the SDK versions you want to target. Once you have it, you can start it up and open SDK Manager in the top right corner: Then you have to download Android Studio and unzip it somewhere you like, for example your home folder, or /opt/androidstudio.

broken image
broken image

To do so, add this line to your ~/.bashrc: export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 You'll also need to set the JAVA_HOME variable to match the installation directory of your Java 8 JDK. While it's officially recommended to use Oracle Java, OpenJDK will do just fine: sudo apt install openjdk-8-jdk Installation of Android Studio on Ubuntu has been covered thoroughly in a different SO answer, but I'll go over it quickly: first you need to install Java 8 JDK. (Note: In theory you could just download the Android SDK and NDK, I haven't tried it though.) In short, first of all you have to install Java, Mono and Android Studio, then you have to compile Xamarin.Android yourself and finally you have to setup your favorite IDE to work with Xamarin. Yes, you can develop with Xamarin.Android on Ubuntu! However, since Linux, sadly, isn't oficially supported by Xamarin, it's not as straightforward as it would be on Windows.