伙計們
現在在嘗試模擬應用程式時,終端拋出例外并且應用程式無法啟動:
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:processDebugResources'.
> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
> Could not resolve com.google.android.gms:play-services-location:16. .
Required by:
project :app > project :location
> Failed to list versions for com.google.android.gms:play-services-location.
> Unable to load Maven meta-data from https://google.bintray.com/exoplayer/com/google/android/gms/play-services-location/maven-metadata.xml.
> Could not get resource 'https://google.bintray.com/exoplayer/com/google/android/gms/play-services-location/maven-metadata.xml'.
> Could not GET 'https://google.bintray.com/exoplayer/com/google/android/gms/play-services-location/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
BUILD FAILED in 37s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
顫振醫生結果:
[√] Flutter (Channel stable, 1.22.5, on Microsoft Windows [vers?£o 10.0.19041.1348], locale pt-BR)
[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[√] Android Studio (version 3.6)
[√] Connected device (1 available)
我已經嘗試在 * project / android / build.gradle * 傳遞 * mavenCentral * 中替換“jcenter”如下,正如這里和這里所報告的那樣,但這并沒有解決問題
repositories {
google()
mavenCentral()
maven {
url "https://maven.google.com"
}
}
我強調一下,這個專案是正常作業的,這發生在這個時候。
我請求幫助解決的好意。
uj5u.com熱心網友回復:
我有同樣的問題,當關閉 wifi 時正常運行
uj5u.com熱心網友回復:
在你的 App->BuildGradle 添加
apply plugin: 'com.google.gms.google-services'
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/377561.html
上一篇:如何在顫動中為顏色過渡設定影片?
