在Android Studio 2020.3.1(Canary 14)中,要查找JDK的位置,请按照以下步骤进行:
以下是源代码示例:
1.打开"File"选项:
File menu = new File(); menu.open();
2.选择"Project Structure...":
menu.choose("Project Structure...");
3.在"Project Structure"对话框中选择"SDK Location"选项卡:
ProjectStructureDialog dialog = new ProjectStructureDialog(); dialog.selectTab("SDK Location");
4.选择"JDK Location"选项:
dialog.selectJDK();
5.在 "Choose JDK Location" 对话框中选择您的JDK安装路径:
JDKLocationDialog jdkDialog = new JDKLocationDialog(); jdkDialog.choosePath("JDK_INSTALLATION_PATH");
上一篇:AndroidStudio2020.3.1在一分钟后自动崩溃问题。
下一篇:AndroidStudio2021(Chipmunk)ClarityonWhatGradleversiontouse?