gpt4 book ai didi

Android jitpack 不会从我的仓库构建

转载 作者:行者123 更新时间:2023-11-29 16:53:30 26 4
gpt4 key购买 nike

我正在尝试通过 gradle 和 jitpack 使用库的分支。我有 jitpack.io 存储库设置(并使用另一个库的另一个分支)。

我试图包含的新分支如下:https://github.com/philippeauriach/ChatKit/tree/allow-moving-item

jitpack网站看的不错:https://jitpack.io/#philippeauriach/ChatKit/allow-moving-item-SNAPSHOT

但是当我将 compile 'com.github.philippeauriach:ChatKit:allow-moving-item-SNAPSHOT' 添加到我的 gradle 依赖文件时,它说

12:03   Gradle sync failed: Could not find com.github.philippeauriach:ChatKit:allow-moving-item-SNAPSHOT.
Required by:
project :app
Consult IDE log for more details (Help | Show Log)

通过使用 ./gradlew assembleDebug --info 我得到以下日志:

Resource missing. [HTTP GET: https://jcenter.bintray.com/com/github/philippeauriach/ChatKit/allow-moving-item-SNAPSHOT/ChatKit-allow-moving-item-SNAPSHOT.pom]
Resource missing. [HTTP HEAD: https://jcenter.bintray.com/com/github/philippeauriach/ChatKit/allow-moving-item-SNAPSHOT/ChatKit-allow-moving-item-SNAPSHOT.jar]
Resource missing. [HTTP GET: https://maven.fabric.io/public/com/github/philippeauriach/ChatKit/allow-moving-item-SNAPSHOT/maven-metadata.xml]
Resource missing. [HTTP GET: https://maven.fabric.io/public/com/github/philippeauriach/ChatKit/allow-moving-item-SNAPSHOT/ChatKit-allow-moving-item-SNAPSHOT.pom]
Resource missing. [HTTP HEAD: https://maven.fabric.io/public/com/github/philippeauriach/ChatKit/allow-moving-item-SNAPSHOT/ChatKit-allow-moving-item-SNAPSHOT.jar]
Resource missing. [HTTP GET: http://dl.bintray.com/amulyakhare/maven/com/github/philippeauriach/ChatKit/allow-moving-item-SNAPSHOT/maven-metadata.xml]
Resource missing. [HTTP GET: http://dl.bintray.com/amulyakhare/maven/com/github/philippeauriach/ChatKit/allow-moving-item-SNAPSHOT/ChatKit-allow-moving-item-SNAPSHOT.pom]
Resource missing. [HTTP HEAD: http://dl.bintray.com/amulyakhare/maven/com/github/philippeauriach/ChatKit/allow-moving-item-SNAPSHOT/ChatKit-allow-moving-item-SNAPSHOT.jar]
Resource missing. [HTTP GET: https://maven.google.com/com/github/philippeauriach/ChatKit/allow-moving-item-SNAPSHOT/maven-metadata.xml]
Resource missing. [HTTP GET: https://maven.google.com/com/github/philippeauriach/ChatKit/allow-moving-item-SNAPSHOT/ChatKit-allow-moving-item-SNAPSHOT.pom]
Resource missing. [HTTP HEAD: https://maven.google.com/com/github/philippeauriach/ChatKit/allow-moving-item-SNAPSHOT/ChatKit-allow-moving-item-SNAPSHOT.jar]
Resource missing. [HTTP GET: https://jitpack.io/com/github/philippeauriach/ChatKit/allow-moving-item-SNAPSHOT/ChatKit-allow-moving-item-f906bb2db7-1.pom]
Resource missing. [HTTP HEAD: https://jitpack.io/com/github/philippeauriach/ChatKit/allow-moving-item-SNAPSHOT/ChatKit-allow-moving-item-f906bb2db7-1.jar]

也就是说jitpack没有模块。这可能来自哪里?

最佳答案

我终于解决了我的问题。检查 jitpack 构建日志为我提供了有关该问题的更多信息:https://jitpack.io/com/github/philippeauriach/ChatKit/jitpack-compile-a17dd57690-1/build.log(jitpack 日志 url 是 https://jitpack.io/com/github/USER/REPO/TAG/build.log )

我丢失了一些文件(尤其是 jitpack 所需的包装器 jar 文件,如 here 所述:检查您的 Git 存储库中是否有 Gradle 包装器。如果没有,则使用命令 gradle wrapper 并提交它。还要检查生成的 gradle-wrapper.jar 是否未被 .gitignore 规则忽略。 )

所以在我的项目的根目录下运行 gradle wrapper 生成了这些文件:

gradlew
gradlew.bat
gradle/
wrapper/
gradle-wrapper.jar
gradle-wrapper.properties

他们需要提交才能使用 jitpack。

关于Android jitpack 不会从我的仓库构建,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45587659/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com