SDK
小于 1 分钟
SDK
获取Project使用的SDK
Sdk projectSdk = ProjectRootManager.getInstance(project).getProjectSdk();
get或set Project SDK
- 获取Project的SDK
Sdk projectSdk = ProjectRootManager.getInstance(project).getProjectSdk();
- 获取Project的SDK名称
String projectSdkName = ProjectRootManager.getInstance(project).getProjectSdkName();
- 设置Project的SDK
ProjectRootManager.getInstance(project).setProjectSdk(sdk);
- 设置Project的SDK名称
ProjectRootManager.getInstance(project).setProjectSdkName(name);
可用的SDK
ProjectJdkTable 可以用来查询和修改SDK
自定义SDK
...
Loading...