我们有一个共同协作的 Android Studio 项目。
一位同事设置了 bintray.com 来收集我们的 android Studio 项目中所有必需的库。我们在那里都有自己的帐户,我们已经在 gradle.properties 文件中设置了 bintray API key 和相应的 github 用户名。对他来说,它工作得很好,他获得了上传的库,例如 test-1.0.0.pom
;但我不这么认为。
相反,我得到
Error:Could not GET 'https://oss.jfrog.org/artifactory/oss-snapshot-local/xxx/yyy/zzz/1.0.0/test-1.0.0.pom'. Received status code 409 from server: Conflict Enable Gradle 'offline mode' and sync project
Gradle sync failed: Could not GET 'https://oss. ... with very same error message
所以我和服务器有冲突?我做错了什么?
最佳答案
如果您尝试上传您同事已上传的同一库 (test-1.0.0.pom
),则 409 是正常的且正确的。您无法覆盖库的发布版本。
通常,您使用了错误的工具。 Bintray 是一个分发平台,旨在分发向外界发布的库。 您正在寻找类似 artifactory 的内容– 开发过程中的协作工具。继续安装免费的 Artifactory Open Source ,它与 Gradle 配合得很好。
我和 JFrog ,背后的公司bintray和 artifactory ,参见my profile了解详细信息和链接。
关于android-studio - Bintray 响应冲突,错误代码 409,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38497636/