After git clone the repository and add android platform, if I trigger ionic build android I get the following error:
Running command: C:\nodejs\node.exe c:\src\projects\ionic-geofence\hooks\after_prepare\010_add_platform_class.js c:\src\projects\ionic-geofence
add to body class: platform-android
Running command: C:\nodejs\node.exe c:\src\projects\ionic-geofence\hooks\after_prepare\020_remove_sass_from_platforms.js c:\src\projects\ionic-geofence
Running command: cmd "/s /c "c:\src\projects\ionic-geofence\platforms\android\cordova\build.bat --buildConfig=c:\src\projects\ionic-geofence\build.json""
ANDROID_HOME=C:\Program Files (x86)\Android\android-sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_65
Reading build config file: c:\src\projects\ionic-geofence\build.json
Running: c:\src\projects\ionic-geofence\platforms\android\gradlew cdvBuildDebug -b c:\src\projects\ionic-geofence\platforms\android\build.gradle -Dorg.gradle.daemon=true
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_debugCompile'.
> Could not find any version that matches com.google.android.gms:play-services-location:+.
Searched in the following locations:
https://repo1.maven.org/maven2/com/google/android/gms/play-services-location/maven-metadata.xml
https://repo1.maven.org/maven2/com/google/android/gms/play-services-location/
file:/C:/Program Files (x86)/Android/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-location/maven-metadata.xml
file:/C:/Program Files (x86)/Android/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-location/
Required by:
:android:unspecified
BUILD FAILED
Total time: 8.207 secs
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
c:\src\projects\ionic-geofence\platforms\android\cordova\node_modules\q\q.js:126
throw e;
^
Error code 1 for command: cmd with args: /s /c "c:\src\projects\ionic-geofence\platforms\android\gradlew cdvBuildDebug -b c:\src\projects\ionic-geofence\platforms\android\build.gradle -Dorg.gradle.daemon=true"
ERROR building one of the platforms: Error: cmd: Command failed with exit code 1
You may not have the required environment or OS to build this project
Error: cmd: Command failed with exit code 1
After git clone the repository and add android platform, if I trigger ionic build android I get the following error: