【发布时间】:2016-04-05 01:02:34
【问题描述】:
我正在按照教程http://code.tutsplus.com/tutorials/creating-and-publishing-an-android-library--cms-24582 上传库。一切正常,它现在在 Bintray 上,正如您在 https://dl.bintray.com/elye-project/maven/ 中看到的那样。
但是,当我尝试按照教程中的第 4 步使用库时,我不断收到以下错误。
Error:(25, 13) Failed to resolve: com.elyeproj.libraries:analogtimerlibrary:1.0.0
我已经检查了我的项目 gradle 中是否有相应的放置
repositories {
jcenter()
maven {
url 'https://dl.bintray.com/elye-project/maven'
}
}
在我的模块 gradle 中
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.2.1'
compile 'com.elyeproj.libraries:analogtimerlibrary:1.0.0@aar'
}
可能的问题是什么?我该如何解决?
【问题讨论】:
-
它对我有用。
-
谢谢@F43nd1r!这有助于重申图书馆已经出版。我想我做错了什么,我把构建脚本存储库....而不是所有项目存储库。如果这也是您所做的,请随时发布答案,我可以打勾。谢谢!!
标签: android maven gradle publishing