-
Notifications
You must be signed in to change notification settings - Fork 28.9k
Open
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projecta: qualityA truly polished experienceA truly polished experiencedependency: androidAndroid team may need to help usAndroid team may need to help ust: gradle"flutter build" and "flutter run" on Android"flutter build" and "flutter run" on Androidteam-androidOwned by Android platform teamOwned by Android platform teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-androidTriaged by Android platform teamTriaged by Android platform team
Description
Consider for example: https://cirrus-ci.com/task/6022315478614016?logs=main#L205
Ideally, this should have resulted in one of the following:
Either something like the following (for non-fatal network errors, solved by retrying with jittered truncated exponential backoff until it works):
Running Gradle task 'assembleRelease'...
There are network issues attempting to contact jcenter.bintray.com, please stand by...
Issues resolved by retrying!
Running Gradle task 'assembleRelease'... 1925.2s
...or something like the following (for fatal errors, where retrying forever is deemed a bad idea):
Running Gradle task 'assembleRelease'...
There are network issues attempting to contact jcenter.bintray.com, please stand by...
Could not obtain the following resource:
https://jcenter.bintray.com/io/flutter/armeabi_v7a_debug/1.0.0-f0826da7ef2d301eb8f4ead91aaf026aa2b52881/armeabi_v7a_debug-1.0.0-f0826da7ef2d301eb8f4ead91aaf026aa2b52881.pom
The server responded with "502 Bad Gateway".
Instead here is what we get:
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:lintVitalRelease'.
> Could not resolve all artifacts for configuration ':app:releaseRuntimeClasspath'.
> Could not resolve io.flutter:armeabi_v7a_release:1.0.0-f0826da7ef2d301eb8f4ead91aaf026aa2b52881.
Required by:
project :app
> Could not resolve io.flutter:armeabi_v7a_release:1.0.0-f0826da7ef2d301eb8f4ead91aaf026aa2b52881.
> Could not get resource 'https://jcenter.bintray.com/io/flutter/armeabi_v7a_release/1.0.0-f0826da7ef2d301eb8f4ead91aaf026aa2b52881/armeabi_v7a_release-1.0.0-f0826da7ef2d301eb8f4ead91aaf026aa2b52881.pom'.
> Could not HEAD 'https://jcenter.bintray.com/io/flutter/armeabi_v7a_release/1.0.0-f0826da7ef2d301eb8f4ead91aaf026aa2b52881/armeabi_v7a_release-1.0.0-f0826da7ef2d301eb8f4ead91aaf026aa2b52881.pom'.
> Read timed out
> Could not resolve io.flutter:arm64_v8a_release:1.0.0-f0826da7ef2d301eb8f4ead91aaf026aa2b52881.
Required by:
project :app
> Could not resolve io.flutter:arm64_v8a_release:1.0.0-f0826da7ef2d301eb8f4ead91aaf026aa2b52881.
> Could not get resource 'https://jcenter.bintray.com/io/flutter/arm64_v8a_release/1.0.0-f0826da7ef2d301eb8f4ead91aaf026aa2b52881/arm64_v8a_release-1.0.0-f0826da7ef2d301eb8f4ead91aaf026aa2b52881.pom'.
> Could not HEAD 'https://jcenter.bintray.com/io/flutter/arm64_v8a_release/1.0.0-f0826da7ef2d301eb8f4ead91aaf026aa2b52881/arm64_v8a_release-1.0.0-f0826da7ef2d301eb8f4ead91aaf026aa2b52881.pom'.
> 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.
* Get more help at https://help.gradle.org
BUILD FAILED in 3m 34s
[!] Gradle threw an error while downloading artifacts from the network. Retrying to download...
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:lintVitalRelease'.
> Could not resolve all artifacts for configuration ':app:debugRuntimeClasspath'.
> Could not resolve io.flutter:armeabi_v7a_debug:1.0.0-f0826da7ef2d301eb8f4ead91aaf026aa2b52881.
Required by:
project :app
> Could not resolve io.flutter:armeabi_v7a_debug:1.0.0-f0826da7ef2d301eb8f4ead91aaf026aa2b52881.
> Could not get resource 'https://jcenter.bintray.com/io/flutter/armeabi_v7a_debug/1.0.0-f0826da7ef2d301eb8f4ead91aaf026aa2b52881/armeabi_v7a_debug-1.0.0-f0826da7ef2d301eb8f4ead91aaf026aa2b52881.pom'.
> Could not GET 'https://jcenter.bintray.com/io/flutter/armeabi_v7a_debug/1.0.0-f0826da7ef2d301eb8f4ead91aaf026aa2b52881/armeabi_v7a_debug-1.0.0-f0826da7ef2d301eb8f4ead91aaf026aa2b52881.pom'. 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 1m 59s
[!] Gradle threw an error while downloading artifacts from the network. Retrying to download...
Gradle task assembleRelease failed with exit code 1
spalenzuela
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projecta: qualityA truly polished experienceA truly polished experiencedependency: androidAndroid team may need to help usAndroid team may need to help ust: gradle"flutter build" and "flutter run" on Android"flutter build" and "flutter run" on Androidteam-androidOwned by Android platform teamOwned by Android platform teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-androidTriaged by Android platform teamTriaged by Android platform team