Erro gradel to build apk file


#1

i use this comment to create apk file (ionic cordova run android)

*** What went wrong:**
A problem occurred configuring root project ‘android’.
> Could not resolve all dependencies for configuration ‘:classpath’.
** > Could not resolve com.android.tools.build:gradle:3.0.1.**
** Required by:**
** project :**
** > Could not resolve com.android.tools.build:gradle:3.0.1.**
** > Could not get resource ‘https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.1/gradle-3.0.1.pom’.**
** > Could not HEAD ‘https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.1/gradle-3.0.1.pom’.**
** > Connect to jcenter.bintray.com:443 [jcenter.bintray.com/75.126.118.188] failed: Connection timed out: connect**
** > Could not resolve com.android.tools.build:gradle:3.0.1.**
** > Could not parse POM https://maven.google.com/com/android/tools/build/gradle/3.0.1/gradle-3.0.1.pom**
** > Already seen doctype.**

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


#2

What happens if you manually open https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.0.1/gradle-3.0.1.pom in your browser? Does it download a file?

What is your ionic info output?


#3

not download gradle file

my ionic info
@ionic/app-scripts : 3.1.5
Ionic Framework : ionic-angular 3.9.2

System:

Node : v8.9.3
npm  : 5.5.1 
OS   : Windows 10

Misc:

backend : pro

#4

Excuse me, but: What?


#5

not download gradle file


#6

What does it do instead?


#7

my problem resolve by vpn
not access gradle file in iran