allin0n3
allin0n3

Reputation: 157

Changing path to SDK located in different location in Visual studio

When I want to run android app in Microsoft Visual Studio (with XAMARIN), I'm getting this message:

Could not find android.jar for API Level 23. This means the Android SDK platform for API Level 23 is not installed. Either install it in the Android SDK Manager (Tools > Open Android SDK Manager...), or change your Xamarin.Android project to target an API version that is installed. (C:\Users\Tomek\AppData\Local\Android\Sdk\platforms\android-23\android.jar missing.)

How can I change this path to D:\Android\Sdk\platforms\android-23\android.jar ? Changing location in Tools > Options > Xamarin > Android SDK location doesn't work.

Upvotes: 2

Views: 13414

Answers (1)

Alan Clark
Alan Clark

Reputation: 974

It looks like you need to point Xamarin.Android to the location of your Android SDK on your D:\ drive:

Visual Studio > Tools > Options > Xamarin > Android > Android SDK Location

enter image description here

You would set this to the path of your SDK, in your case D:\Android\Sdk

Please also make sure that you have the Android API 23 installed in your SDK Manager.

Go to Tools > Android > Android SDK Manager

Locate the SDK Platform item in the Android 6.0 (API 23) folder and select the checkbox. Click Install in the bottom right and follow the instructions.

enter image description here

Upvotes: 8

Related Questions