Android jitpack 不会从我的仓库构建
Android jitpack wont build from my repo
我正在尝试使用 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 : Check that you have the Gradle wrapper in your Git repository. If you don’t then create it using the command gradle wrapper and commit it. Also check that the generated gradle-wrapper.jar is not ignored with .gitignore rules.
)
so 运行 gradle wrapper
在我项目的根目录下生成了这些文件:
gradlew
gradlew.bat
gradle/
wrapper/
gradle-wrapper.jar
gradle-wrapper.properties
他们需要提交才能使用 jitpack。
我正在尝试使用 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 : Check that you have the Gradle wrapper in your Git repository. If you don’t then create it using the command gradle wrapper and commit it. Also check that the generated gradle-wrapper.jar is not ignored with .gitignore rules.
)
so 运行 gradle wrapper
在我项目的根目录下生成了这些文件:
gradlew
gradlew.bat
gradle/
wrapper/
gradle-wrapper.jar
gradle-wrapper.properties
他们需要提交才能使用 jitpack。