Gradle does not load dependencies in intelliJ idea

I am creating a Java project in the Intellij Idea IDE. Below 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 am using the proxy connection provided by the school and have completed the necessary proxy settings in the IDE. Log4j dependencies do not load. I updated the gradle project many times, but it does not load dependencies and does not even give any errors. How can I solve this problem?

+5
source share
2 answers

The following trick given here worked well for me:

Cancel the offline check in file> Settings> Gradle> Global Gradle Settings

+8
source

We had it, after doing File> Invalidate Caches / Restart ...

+2
source

Source: https://habr.com/ru/post/1246499/


All Articles