Changing path to SDK located in different location

2019-07-08 10:19发布

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.

1条回答
够拽才男人
2楼-- · 2019-07-08 11:09

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

查看更多
登录 后发表回答