繁体   English   中英

Visual Studio (xamarin) 错误“Xamarin.Android for Visual Studio 需要 Java 开发工具包 (JDK)。请点击此处进行配置。” 0

[英]Visual Studio (xamarin) error "Xamarin.Android for Visual Studio requires Java Development Kit (JDK). Please click here to configure." 0

I was trying to download the Android emulator from visual studio to xamarin but it appears this error "Xamarin.Android for Visual Studio requires Java Development Kit (JDK). Please click here to configure". 我试图修复 Android SDK Manager 上的安装并安装其他 SDK 但错误仍然存在。 如果你帮助我,我真的会很高兴。 视觉工作室错误

您可以尝试手动安装 android JDK。

Xamarin.Android uses the Java Development Kit (JDK) to integrate with the Android SDK for building Android apps and running the Android designer. 最新版本的 Android SDK(API 24 及更高版本)需要 JDK 8 (1.8)。

步骤如下:

1.从Oracle网站下载JDK 8(1.8):

在此处输入图像描述

  1. 选择 64 位版本以允许在 Xamarin Android 设计器中呈现自定义控件:

在此处输入图像描述

3.运行.exe并安装开发工具。

4.Open Visual Studio and update the Java Development Kit Location to point to the new JDK under Tools > Options > Xamarin > Android Settings > Java Development Kit Location.

有关更多信息,您可以查看: https://learn.microsoft.com/en-us/xamarin/android/troubleshooting/questions/update-jdk?tabs=windows

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM