Error when build ionic to Android

I created new project, add platform Android and add Push notification following this docs:

Then I try to build by comand line : > ionic build android.
It return this error:
A problem occurred configuring root project ‘android’.

Could not resolve all dependencies for configuration ‘:_debugCompile’.
Could not find any version that matches
Searched in the following locations:
Required by:
Anyone know the root problem? I’m really stuck!

Hi, i had the same problem and resolved with the commands:
android list sdk
android update sdk --no-ui --filter extra

bug: PushPlugin makes Android build fail every time

Good luck!

1 Like

OMG !! It worked Thank you !!