0
donuts
4y

Stuck on this problem all day... New project using Gradle... Usually we use Maven.

I added a Jodo Time to the project as a compile/implementation depency.

But it doesn't add it to/update the project so I can use it.

I'm not sure what part is screwing up.

Feels like if a class doesn't use a package it won't download it even if it's in the build.properties?

But well I can't use it if it's not downloaded?

Comments
  • 1
    Once you have the dep implemenetation declared like:

    dependencies {
    implementation 'com.someorg:package-name:version'
    }

    Go into intellij and tell it to update gradle deps. It should appear at that point.

    Once done, run:
    gradlew clean build

    should wipe the gradle cache and build with a fresh restore.
  • 0
    @SortOfTested will give it a try tmr. Where in intellij though? I couldn't find anything right-clicking on the project tree.

    There was a reload, rebuild project but neither imported.
  • 1
    @donuts
    shift shift -> "refresh gradle"
  • 3
    @donuts
    It's the refresh icon
Add Comment