我對 GitHub 很陌生,所以也許這很明顯,但我遵循了許多網站的所有步驟(當然還有 SO 問題),但它不起作用。
我需要改變
編輯:
我按照答案解決了一個錯誤。但它仍然沒有作業。所以我在 jitpack.io 上檢查了它。現在的錯誤是Execution failed for task ':ucrop:signReleasePublication'. > Could not read PGP secret key。我在互聯網上查找了它,但我找不到解決方法。我假設一些 Gradle 設定應包括一些簽名密鑰,而我的缺少這樣的密鑰。但由于它是一個 fork,我的 Gradle 檔案是完全相同的檔案。(我只對一些 java.classes 做了小改動)
- 單擊日志圖示,您將看到根本原因:

uj5u.com熱心網友回復:
假設您看到錯誤訊息:
Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Could not find com.github.yalantis:ucrop:2.2.6.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/github/yalantis/ucrop/2.2.6/ucrop-2.2.6.pom
- https://repo.maven.apache.org/maven2/com/github/yalantis/ucrop/2.2.6/ucrop-2.2.6.pom
- https://jcenter.bintray.com/com/github/yalantis/ucrop/2.2.6/ucrop-2.2.6.pom
Required by:
project :app
首先檢查這是否類似于Yalantis/uCrop問題 779 -Yalantis/uCrop是原始專案)
你只是移動:
maven { url "https://jitpack.io" }從build.gradle (Project)到settings.gradledependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { google() mavenCentral() jcenter() maven { url "https://maven.google.com" } maven { url "https://jitpack.io" } } } rootProject.name = "<Project Name>" include ':app'
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/408433.html
標籤:
