How to import a java Gradle project idea

1, first open the idea, the upper left corner select File -> Open ..--> select items in the build.gradle File -> Open as a project -> new window

The following pop-up box, the default can be, gradle here can use one of three options, and the third is to use a locally installed gradle set jvm with jdk

After that, it began automatically java sysn

After clicking ok is completed, it will automatically downloading dependencies, and then change build.gradle, just the same as when using pom.xml, save the changes take effect started

---------------------------------------------------------------------------------------------------------------------------------------

If you encounter the following problems, explain gradle version you are using is not compatible with gradle version of your current project used, you can view gradle version under the item used, then local download this gradle version, and then configure the home when Gradle select the version you can;

  

Published 87 original articles · won praise 205 · Views 350,000 +

Guess you like

Origin blog.csdn.net/weixin_43970743/article/details/104309780