找不到 .jar 文件在以下位置搜索:https://jcenter.bintray.com/

Could not find .jar file Searched in the following locations: https://jcenter.bintray.com/

我正在尝试将我的库上传到 Jcenter 当我测试我的库时,我得到了这个错误 找不到在以下位置搜索的 .jar 文件:https://jcenter.bintray.com/ 而且我没有在我的仓库中找到 .arr 文件 .. 请帮助:)enter image description here

您的脚本同时发布了 debugrelease 工件。但是你添加依赖而不指定它们中的任何一个。此外,您需要指定 aar 类型:

compile 'com.abanoub.androidlib:walkthrough:1.0.0:release@aar'

就我而言,这是由缓存问题引起的。发现在另一台计算机上,它按预期工作。 Re-creating 项目解决了问题。