警告:没有为模块“Myproject"指定 JDK.在 Android Studio 中运行我的项目时 [英] Warning:No JDK specified for module 'Myproject'.when run my project in Android studio
本文介绍了警告:没有为模块“Myproject"指定 JDK.在 Android Studio 中运行我的项目时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我运行我的项目时,我发现模块出错了然后我点击创建错误警告:没有为模块'Myproject'指定的JDK.运行我的项目时.",vI 设置JAVA_HOME
和JDK_HOME
在我的路径中.希望有人可以分享您的想法吗?
When I run my project, I found the module in error
then I click in founding an error "Warning:No JDK specified for module 'Myproject'.when run my project.",vI setting JAVA_HOME
and JDK_HOME
in my path. hope Anyone can share your idea?
推荐答案
当我删除 jdk 并以某种方式安装新的时发生了这种情况,该项目一直将旧的视为无效但无法更改,因此右键单击您的模块 -> 打开模块设置 -> 并选择编译 Sdk 版本.
it happened for me when I deleted the jdk and installed new one somehow the project kept seeing the old one as invalid but couldn't change, so right click on your module -> Open Module Settings -> and choose Compile Sdk Version.
这篇关于警告:没有为模块“Myproject"指定 JDK.在 Android Studio 中运行我的项目时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文