Gradle not downloading dependencies in intelliJ idea
Solution 1
The following trick as given here, worked well for me:
Un-check "Offline work" in File>Settings>Gradle>Global Gradle Settings
Solution 2
We had this, worked after doing File>Invalidate Caches / Restart...
cnova
I am a "fluctuating" programmer, sometimes I code for many hours and sometimes I don't for days on end. When I am not procrastinating (Social media, Youtube, etc.) , I like to Skate. Do not have anything else to write down here, so I better concentrate on work. You can do anything, you set your mind to man! - 8 Mile!
Updated on October 09, 2020Comments
-
cnova over 3 years
I am building a Java project in Intellij Idea IDE. Following is my build.gradle file:
group 'fyp_group09' version '1.0-SNAPSHOT' apply plugin: 'java' sourceCompatibility = 1.5 repositories { mavenCentral() } dependencies { testCompile group: 'junit', name: 'junit', version: '4.11' compile 'log4j:log4j:1.2.17' }
I use a proxy connection provided by school and have done the required proxy setup in the IDE. The log4j dependencies are not getting downloaded. I've refreshed the gradle project many times, but it does not download the dependencies and does not even give any error. How can I solve this problem?
-
venu46 about 6 yearsThank You.You saved me a lot
-
Tommy almost 5 yearsDon't have a clue how I got mine got checked but this solved all my issues I've been having