Gradle dependencies not working in IntelliJ

10,521

There were invalid dependencies. I removed those and it started to work.

Share:
10,521
CaptainForge
Author by

CaptainForge

Updated on June 04, 2022

Comments

  • CaptainForge
    CaptainForge almost 2 years

    I'm working on an intelliJ project with my friends where we use MongoDB & Morphia. We have the mongo stuff as a dependency in Gradle, as you can see here:

    enter image description here

    I didn't set this stuff up, I cloned it from a repository. But my other friends have gotten this to work - all on Windows, OSX, and Linux. And only one of them set it up.

    The issue is that it doesn't know what Morphia / MongoDB is (for example, the imports don't work).

    What I have done:

    • Resync Gradle
    • Run the Gradle.build file
    • Reclone the project
    • Invalidate caching and restart

    And it still doesn't know what MongoDB is. So then I tried to get everything working in a VM of Ubuntu, but I have a similar issue, except it doesn't list any of the dependencies you see above.

    Anyone have any ideas on what I need to do on my end to get this working?

    Here is the Build.gradle, minus the first line where we define the group (it contains my friend's name).

    enter image description here

    Possibly something to do with the issue: They complain that some of the dependecies are "invalid".

    enter image description here

    enter image description here