Warning:No JDK specified for module 'Myproject'.when run my project in Android studio

前端 未结 11 1885
故里飘歌
故里飘歌 2021-02-02 07:10

When I run my project, I found module is error then I click in found a error \"Warning:No JDK specified for module \'Myproject\'.when run my project.\",vI sett

11条回答
  •  攒了一身酷
    2021-02-02 07:43

    My issue was solved by simply refreshing the modules View > Maven Projects. There is refresh icon which refreshes your entire project(s)

    How I got this error : I imported a project (Let's call this A which is main project) first and added the remaining projects (B,C,D etc) as modules to this one as I needed all my projects to be shown in one package folder. I deleted the old (A) Project and cloned it again from repo. The IntelliJ reloaded the (A) project but when I try to run, the project wasn't compiling saying "Warning:No JDK specified for module 'B'".

提交回复
热议问题