implementation ('lib/discord-rpc-release-v3.3.0.jar')
implementation ('lib/java-discord-rpc-2.0.2.jar')
I put this code into dependencies, but I think I'm doing it wrong. How could I do it correctly?
implementation ('lib/discord-rpc-release-v3.3.0.jar')
implementation ('lib/java-discord-rpc-2.0.2.jar')
I put this code into dependencies, but I think I'm doing it wrong. How could I do it correctly?
If you wanna add local dependencies (meaning dependencies present in your computer), you have to use files
with the implementation
block. Do it like this:
dependencies {
implementation files('lib/discord-rpc-release-v3.3.0.jar')
implementation files('lib/java-discord-rpc-2.0.2.jar')
}
This way, gradle won't search for these dependencies in online repositories like Maven Central or any other, just make sure that the jars are present in the directory specified.