I have library project, developed on Android Studio 1.3.0 and deployed to Artifactory Open Source Local Repository (3.5)
But when I try to load it in application project, no classes were found
dependencies {
compile 'com.my:my-library:2.1.0'
}
Refresh dependencies doesn't help
gradle --refresh-dependencies
In local cache directory /Users/user/.gradle/caches/modules-2/files-2.1/com.my/my-library/2.1.0 jar file exist
You have to add the repository to the repositories closure in you project gradle file:
repositories {
jcenter()
mavenCentral()
maven {
url artifactoryUrl
}
}
Where artifactoryUrl could be something like
"http://localhost:8081/artifactory/libs-snapshot-local"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With