According to the documentation, use a relative path for a local jar dependency as follows.
Groovy syntax:
dependencies {
implementation files('libs/something_local.jar')
}
Kotlin syntax:
dependencies {
implementation(files("libs/something_local.jar"))
}
More Related Contents:
- Peer not authenticated while importing Gradle project in eclipse
- Is it possible to declare a variable in Gradle usable in Java?
- How do I tell Gradle to use specific JDK version?
- How do I exclude all instances of a transitive dependency when using Gradle?
- Creating runnable JAR with Gradle
- Gradle – Could not find or load main class
- JCenter deprecation; impact on Gradle and Android
- What does transitive = true in Gradle exactly do (w.r.t. crashlytics)?
- java.util.scanner throws NoSuchElementException when application is started with gradle run
- Add classpath in manifest using Gradle
- Maven profiles equivalent of Gradle
- Error: Gradle: execution failed for task ‘:app:preDexDebug’
- How can I force Gradle to set the same version for two dependencies?
- Error:Execution failed for task ‘:app:packageRelease’. > Unable to compute hash of /../AndroidStudioProjects/../classes.jar
- How to find/remove unused dependencies in Gradle
- Manifest merger failed : Attribute application@appComponentFactory updating Firebase libraries
- How to run Gradle test when all tests are UP-TO-DATE?
- Gradle – download dependencies, lock versions and update dependencies manually
- How to add ojdbc7 to Java web app by Gradle?
- Gradle does not find tools.jar
- Android Library Gradle release JAR
- Could not find method compile() for arguments Gradle
- How to set order of repositories in Maven settings.xml
- “The filename or extension is too long error” using gradle
- Multiple dex files define /BuildConfig, can’t find the cause:
- How to give System property to my test via Gradle and -D
- Building with Intellij 2017.2 /out directory duplicates files in /build directory
- How to make gradle generate a valid pom.xml file at the root of a project for maven users?
- Android Studio 3.0 DexArchiveBuilderException
- Run cucumber test with cached dependencies and plugins on gradle