Share via


Where can I set my Android SDK locations?

In Visual Studio, navigate to Tools > Options > Xamarin > Android Settings to view and set the Android SDK location:

Example Locations tab in Preferences

The default location for each path is as follows:

  • Java Development Kit Location:

    C:\Program Files\Java\jdk1.8.0_131

  • Android SDK Location:

    C:\Program Files (x86)\Android\android-sdk

  • Android NDK Location:

    C:\ProgramData\Microsoft\AndroidNDK64\android-ndk-r13b

Note that the version number of the NDK may vary. For example, instead of android-ndk-r13b, it could be an earlier version such as android-ndk-r10e.

To set the Android SDK location, enter the full path of the Android SDK directory into the Android SDK Location box. You can navigate to the Android SDK location in File Explorer, copy the path from the address bar, and paste this path into the Android SDK Location box. For example, if your Android SDK location is at C:\Users\username\AppData\Local\Android\Sdk, clear the old path in the Android SDK Location box, paste in this path, and click OK.