Error when building project


#1

Hi, today, i was trying to build my ionic project in prod mode as usual, but it fails. I get this error:

java.net.ConnectException: Connection timed out: connect

Failed to download any source lists!


BUILD FAILED

Total time: 3 mins 55.317 secs
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_debugApkCopy'.
   > Could not resolve com.android.support:support-v4:27.+.
     Required by:
         project :
      > Could not resolve com.android.support:support-v4:27.+.
         > Failed to list versions for com.android.support:support-v4.
            > Unable to load Maven meta-data from https://maven.google.com/com/android/support/support-v4/maven-metadata.xml.
               > Could not GET 'https://maven.google.com/com/android/support/support-v4/maven-metadata.xml'.
                  > Connect to maven.google.com:443 [maven.google.com/172.217.23.195] failed: Connection timed out: connect

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_debugApkCopy'.
   > Could not resolve com.android.support:support-v4:27.+.
     Required by:
         project :
      > Could not resolve com.android.support:support-v4:27.+.
         > Failed to list versions for com.android.support:support-v4.
            > Unable to load Maven meta-data from https://maven.google.com/com/android/support/support-v4/maven-metadata.xml.
               > Could not GET 'https://maven.google.com/com/android/support/support-v4/maven-metadata.xml'.
                  > Connect to maven.google.com:443 [maven.google.com/172.217.23.195] failed: Connection timed out: connect

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

[ERROR] An error occurred while running cordova run android (exit code 1).

before this, i was getting similar error - could not load .android/repositories.cfg so i created blank one, but it didnt help. Any ideas whats the problem? Its weird, because i didnt change anything…