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 com.android.support:support-v4:+.
Searched in the following locations:
https://repo1.maven.org/maven2/com/android/support/support-v4/maven-met
adata.xml
https://repo1.maven.org/maven2/com/android/support/support-v4/
Required by:
:android:unspecified
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 !!