如何在 Visual Studio 2015 中为特定 Android API 设置路径以使用 usb 调试

How to set path for specific Android API in Visual Studio 2015 for using usb debugging

我正在使用 Xamarin 并在使用 USB 调试时遇到以下错误, 虽然指定的 API 存在于我的电脑上,但它仍然给我以下错误。 如何将错误日志中显示的文件夹路径更改为我 PC 上存在的实际路径。

Severity Code Description Project File Line Source Suppression State Error 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.

(D:\Android SDK\platforms\android-23\android.jar missing.) MyApp.Droid Build

  1. 在解决方案资源管理器中右键单击 Solution

  2. 展开Common Properties>Debug Source Files

  3. 删除右侧框中列出的所有路径

  4. 单击 Apply> OK