2017-08-09 4 views
1

Ich versuche, eine Gabel einer Bibliothek mit Gradle und Jitpack verwenden. Ich habe die jitpack.io-Repositorys eingerichtet (und mit einem anderen Zweig einer anderen Bibliothek arbeiten).Android Jitpack wird nicht aus meinem Repo

Die neue Gabel ich versuche zu zählen ist folgende: es https://github.com/philippeauriach/ChatKit/tree/allow-moving-item

Die jitpack Website sieht gut: https://jitpack.io/#philippeauriach/ChatKit/allow-moving-item-SNAPSHOT

Aber wenn ich compile 'com.github.philippeauriach:ChatKit:allow-moving-item-SNAPSHOT' meiner gradle Abhängigkeitsdatei hinzufügen, heißt es

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) 

Durch die Verwendung von ./gradlew assembleDebug --info ich die folgenden Protokolle erhalten:

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] 

Das bedeutet, dass jitpack kein Modul hat. Wo könnte das herkommen?

Antwort

2

Ich habe endlich mein Problem gelöst. die jitpack Buildprotokoll Überprüfung gab mir weitere Informationen über das Problem: https://jitpack.io/com/github/philippeauriach/ChatKit/jitpack-compile-a17dd57690-1/build.log (jitpack log url ist https://jitpack.io/com/github/USER/REPO/TAG/build.log)

ich einige Dateien fehlte (und vor allem die Wrapper-JAR-Datei, die von jitpack benötigt wie gesagt 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 an der Wurzel meines Projekts läuft erzeugt diese Dateien:

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

Sie brauchen, um begangen werden jitpack zu verwenden.

Verwandte Themen