我刚刚通过 Bintray 将我的库添加到我的 maven 存储库,但是当我尝试在项目中添加依赖项时,Gradle 找不到 .jar。
Error:Could not find mylib.jar (com.test.mylib:mylib:1.0.0).
Searched in the following locations:
https://dl.bintray.com/pseudo/maven/com/test/mylib/mylib/1.0.0/mylib-1.0.0.jar
问题只是 jar 的名称,因为我的存储库中有一个 mylib-1.0.0-sources.jar。那么我该如何改变这条路径呢?
谢谢。
注意:我在 build.gradle 中添加了 maven url。
我按照本教程上传了我的库:
https://inthecheesefactory.com/blog/how-to-upload-library-to-jcenter-maven-central-as-dependency/en
我的问题是在第 5 部分末尾添加依赖项时,如下所示:
repositories {
maven {
url 'https://dl.bintray.com/nuuneoi/maven/'
}
}
dependencies {
compile 'com.inthecheesefactory.thecheeselibrary:fb-like:0.9.3'
}