Flutter run is generating error

Hello there, please I am new to flutter and I am just creating my first flutter application. However, I experience this error:

BUILD FAILED in 7m 29s
Running Gradle task 'assembleDebug'...                            450.6s
[!] Gradle threw an error while downloading artifacts from the network.
Retrying Gradle Build: #1, wait time: 100ms

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all artifacts for configuration 'classpath'.
> Could not download kotlin-gradle-plugin-1.8.22-gradle76.jar (org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.22)
   > Could not get resource 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.8.22/kotlin-gradle-plugin-1.8.22-gradle76.jar'.
      > Could not GET 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.8.22/kotlin-gradle-plugin-1.8.22-gradle76.jar'.
         > Got socket exception during request. It might be caused by SSL misconfiguration
            > Network is unreachable: getsockopt
> Could not download kotlin-compiler-embeddable-1.8.22.jar (org.jetbrains.kotlin:kotlin-compiler-embeddable:1.8.22)
   > Could not get resource 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-compiler-embeddable/1.8.22/kotlin-compiler-embeddable-1.8.22.jar'.
      > Could not GET 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-compiler-embeddable/1.8.22/kotlin-compiler-embeddable-1.8.22.jar'.
         > Got socket exception during request. It might be caused by SSL misconfiguration
            > Network is unreachable: getsockopt
> Could not download grpc-api-1.57.0.jar (io.grpc:grpc-api:1.57.0)
   > Could not get resource 'https://repo.maven.apache.org/maven2/io/grpc/grpc-api/1.57.0/grpc-api-1.57.0.jar'.
1 Like

Did you read what is written in the error message?

It looks like an issue with your internet connection.

Try it again with a stable connection.

Your post was flagged as inappropriate : the community feels it is offensive, abusive, to be hateful conduct or a violation of our community guidelines.

Fucking snowflakes, let me explain my answer: the error is VERY clear in the error message. By forcing the “developer” to actually read the error message and think by himself, I’m actually helping him/her/it more than explaining why such a obvious error is happening. Don’t like my approach? Too bad. Ignore me. Don’t read. I don’t care.

2 Likes