Build erroe

hi
when i try to run a command
ionic cordova run android
i get this error

(node:5656) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: cmd: Command failed with exit
code 1 Error output:
[Fatal Error] gradle-3.0.0.pom:2:10: Already seen doctype.

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring root project ‘android’.

Could not resolve all files for configuration ‘:classpath’.
Could not resolve com.android.tools.build:gradle:3.0.0.
Required by:
project :
Could not resolve com.android.tools.build:gradle:3.0.0.
Could not parse POM https://maven.google.com/com/android/tools/build/gradle/3.0.0/gradle-3.0.0.pom
Already seen doctype.
help plz…

guys…
any idea???

I’m having similar error since using Ionic Framework 3.9.2, this is SO frustrating. Lost 3 days now…
What is going on ? can’t build anymore, gradle error at first even though Android Studio was installed.
I followed some advises on google, installed gradle, changed environment variables ANDROID_HOME…
Now the following error, which looks like Mouseab !

48 PM

I used a proxy and it worked!

1 Like

I guess you have not installed gradle.
try to follow Gradle installation steps and check

should i install gradle 3.0.0 ?? @yashwanth493

install latest version and add in environment variables

samething :neutral_face:

iranian developers problem, worked for me too