導致問題的原因是什么? 我在我的應用程式銷售中遇到了這樣的錯誤。我找不到任何完全作為解決方案的東西。
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:dataBindingMergeDependencyArtifactsDebug'.
> Could not resolve all files for configuration ':app:debugCompileClasspath'.
> Could not resolve androidx.core:core-ktx: .
Required by:
project :app
> Skipped due to earlier error
> Failed to list versions for androidx.core:core-ktx.
> Unable to load Maven meta-data from https://dl.bintray.com/kotlin/kotlin-eap/androidx/core/core-ktx/maven-metadata.xml.
> Could not get resource 'https://dl.bintray.com/kotlin/kotlin-eap/androidx/core/core-ktx/maven-metadata.xml'.
> Could not GET 'https://dl.bintray.com/kotlin/kotlin-eap/androidx/core/core-ktx/maven-metadata.xml'. Received status code 502 from server: Bad Gateway
* 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.
* Get more help at https://help.gradle.org
uj5u.com熱心網友回復:
您需要正確宣告您的依賴項 "androidx.core:core-ktx:$core_version"
uj5u.com熱心網友回復:
這是因為現在不再支持 bintray。轉到您的專案級別build.gradle并注釋掉allprojects和repositories部分中的 bintray 依賴項
Bintray 關閉
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/401987.html
