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

前端 未结 11 1924
故里飘歌
故里飘歌 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:59

    Restart IntelliJ and reimport the Project and import it as maven. It should work then. The error occurs because IntelliJ keeps track of module through .iml files so any changes in these files can cause this error. Reimporting the project regenerates the .iml file so generally, it solves the error.

提交回复
热议问题