Error running App: No JDK specified

前提是你 提交于 2019-12-11 17:35:18

问题


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

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!!


回答1:


Try following, it did work for me:

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


来源:https://stackoverflow.com/questions/48870244/error-running-app-no-jdk-specified

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!