I've created gradle project in Idea Intellij and tried to work with gradle via command line. After calling gradle --refresh-dependencies
or gradle --refresh-dependencies build
I can't see loaded dependencies in Idea. After calling gradle dependencies
command I can see my libs in command line, but not in Idea project. I've read many articles on this and other sites, but I can't fix the problem. Here my build.gradle file:
Maybe I need use gradle wrapper? Of course I can work with gradle via Idea editor, but I want to work via command line. Thanks!
In this case your actions via command line doesn't affect Idea, it needs to refactor project itself to show changes. Other example: you can simply open some java classes in Idea but whatever you do externally Idea won't recognize them as a project till creating some configs. So, in a nutshell: gradle build
may work propely but the only way to see any changes in Idea is to refresh gradle project there.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.