[英]Android Studio doesn't recognize JDK
My Android Studio suddenly stopped recognizing JDK.我的 Android Studio 突然停止识别 JDK。 it starts fine with no error messages.它开始正常,没有错误消息。 I have JDK 1,7 (x86 version) on windows 8.1.我在 Windows 8.1 上有 JDK 1,7(x86 版本)。 Environment variable is defined in the system variables and I can run java -version command from cmd with no issue.环境变量在系统变量中定义,我可以毫无问题地从 cmd 运行 java -version 命令。 following screen shot describe the problem clearly:以下屏幕截图清楚地描述了问题:
You may need to check if both JDK and SDK are set correctly.您可能需要检查 JDK 和 SDK 是否设置正确。
In the current project :在当前项目中:
For projects default :对于项目默认:
Restart Android Studio and try again.重新启动 Android Studio 并重试。
Screenshot: http://i.imgur.com/0OD8OeJ.png (I cannot post images directly)截图: http : //i.imgur.com/0OD8OeJ.png (不能直接发图)
I had the same problem after upgrading to build tool 22.0.1.升级到构建工具 22.0.1 后,我遇到了同样的问题。 I solved this issue by removing dependencies and adding it again like app-compact and play services.我通过删除依赖项并再次添加它来解决这个问题,比如 app-compact 和 play 服务。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.