에러 메시지
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files 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 6m 6s
[!] Gradle threw an error while downloading artifacts from the network. Retrying to download...
/Users/${user}/development/flutter/.pub-cache/hosted/pub.dartlang.org/location-4.3.0/android/build.gradle
build.grdle의 dependencies -> api 부분 수정(https://stackoverflow.com/questions/70166663/could-not-get-play-services-location-maven-metadata-xml-received-status-code/70319873#70319873)
original
api 'com.google.android.gms:play-services-location:16.+'
-> com.google.android.gms:play-services-location:19.0.1 로 변경했는데 안 되다가 갑자기 됨(?..) (21/3/23 기준)
19.0.1의 출처
https://developers.google.com/android/guides/setup
- android emulator v3(https://github.com/google/android-emulator-m1-preview/releases/tag/0.3)에 google play 넣기
-> 관련 이슈 깃허브 https://github.com/google/android-emulator-m1-preview/issues/1
https://dev-repository.tistory.com/97
'프로그래밍 > Flutter & Dart' 카테고리의 다른 글
[Flutter] AppBar의 title 왼쪽으로 정렬하기 (0) | 2022.11.24 |
---|---|
[Flutter] build 시 error (0) | 2022.07.22 |
[Dart] Optional Parameters (Positional, Named) (0) | 2021.11.01 |
[Flutter] Single-child layout / Multi-child layout / Silver Widgets (0) | 2021.08.15 |
[Flutter] EdgeInsets class (0) | 2021.08.15 |
댓글