在本機反應中創建發布版本時出錯
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':react-native-community_clipboard:verifyReleaseResources'.
> Could not resolve all task dependencies for configuration ':react-native-community_clipboard:releaseRuntimeClasspath'.
> Could not resolve com.facebook.react:react-native: .
Required by:
project :react-native-community_clipboard
> Failed to list versions for com.facebook.react:react-native.
> Unable to load Maven meta-data from https://jcenter.bintray.com/com/facebook/react/react-native/maven-metadata.xml.
> Could not GET 'https://jcenter.bintray.com/com/facebook/react/react-native/maven-metadata.xml'.
> Read timed out
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
在 React Native 中發布構建期間發現錯誤
uj5u.com熱心網友回復:
目前jcenter down
解決方案嘗試替換jCenter()為mavenCentral()您的專案gradle
repositories {
google()
mavenCentral()
}
uj5u.com熱心網友回復:
從這里開始,在你的 android/app/build.gradle 中jcenter()替換為。mavenCentral()
uj5u.com熱心網友回復:
實際上,根據Github 上發布的問題,臨時解決方案可能類似于檔案中的以下內容android/build.gradle:
all { ArtifactRepository repo ->
if(repo instanceof MavenArtifactRepository){
def url = repo.url.toString()
if (url.startsWith('https://jcenter.bintray.com/')) {
remove repo
}
}
}
就我而言,它發生在一個node_modules's 包中,我曾經patch-package將解決方案保留在生產中。
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/524001.html
上一篇:apijson 初探
