运行应用程序时出错:未指定JDK [英] Error running App: No JDK specified

查看:673
本文介绍了运行应用程序时出错:未指定JDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了 Android Studio 3.0.1 ,当我运行该应用程序时,他给了我一个错误

I have installed Android studio 3.0.1 and when i run the app he gives me an error

Error running App: No JDK specified

请注意,我已经安装了JDK 9,并制作了两个环境变量 JAVA_HOME JDK_HOME 并编辑了路径变量 在项目结构中,我选择 JDK 9 ,但我也无法运行!

Note that i have installed JDK 9 and I made two environment variable JAVA_HOME and JDK_HOME and edit path variable and in project structure I choose JDK 9 but I am also failed to run!!

推荐答案

尝试以下操作,它确实对我有用:

Try following, it did work for me:

转到文件->项目结构-> SDK位置,然后检查您指定的SDK和JDK位置的路径是否正确.如果没有,请设置正确的路径.

Go to File -> Project Structure -> SDK Location and check if the path for SDK and JDK location specified by you is correct. If its not then set the correct path.

对我来说看起来像这样:

For me it looks like this:

Android SDK location:
C:\Users\JDoe\AppData\Local\Android\Sdk

JDK location:
C:\Program Files\Android\Android Studio\jre

这篇关于运行应用程序时出错:未指定JDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆