我正在尝试学习如何发布 Android 库。
我已按照此博客中的说明进行操作:
http://florentchampigny.com/publish-a-library-to-jcenter
但是当我到达最后一步并按“添加到 jCenter”按钮时,我收到以下错误:
Please fix the following before submitting a jCenter inclusion request: - Add a POM file to the latest version of your package.
我看到列出的名为“Industry-0.0.0-alpha0.pom?override=1”的文件,但当我单击它时,我收到消息:
找不到请求的路径。
如果有帮助:
我的存储库位于:https://bintray.com/labermt/Industry
我的源代码位于:https://github.com/labermt/IndustrySampler
我对此完全陌生,所以它很容易变得简单。我还在寻找博客或文档来帮助我了解如何执行此操作。到目前为止,这个博客是我最接近的。
谢谢。
最佳答案
您的所有文件的文件路径中都包含 ?override=1
。
因此,Bintray 无法识别 .pom 和 .jar 文件。
您将需要重新部署您的 Maven 文件,这次在文件路径中不包含 ?override=1
。
关于android - 将 Android 库发布到 jCenter,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44503521/