title: cordova /platforms/android/gradlew: Command failed with exit code 1 Error output:
body: <p>I HAVE THIS ERROR WITH cordova-onesignal-plugin installed</p>
  
  <p>On build app in ionic</p>
  
  <pre><code>sudo ionic build android
  
  sudo cordova build android
  </code></pre>
  
  <p>Error: /platforms/android/gradlew: Command failed with exit code 1 Error output:
  FAILURE: Build failed with an exception.</p>
  
  <ul>
  <li><p>What went wrong:
  A problem occurred configuring root project 'android'.</p>
  
  <blockquote>
    <p>Could not resolve all dependencies for configuration ':_debugCompile'.
    Could not find any matches for com.google.android.gms:play-services-gcm:+ as no versions of com.google.android.gms:play-services-gcm are available.
     Searched in the following locations:
         repo1.maven.org/maven2/com/google/android/gms/play-services-gcm/maven-metadata.xml
         repo1.maven.org/maven2/com/google/android/gms/play-services-gcm/
         jcenter.bintray.com/com/google/android/gms/play-services-gcm/maven-metadata.xml
         jcenter.bintray.com/com/google/android/gms/play-services-gcm/
         file:/usr/local/Cellar/android-sdk/24.4.1_1/extras/android/m2repository/com/google/android/gms/play-services-gcm/maven-metadata.xml
         file:/usr/local/Cellar/android-sdk/24.4.1_1/extras/android/m2repository/com/google/android/gms/play-services-gcm/
     Required by:
         :android:unspecified
    Could not find any matches for com.google.android.gms:play-services-analytics:+ as no versions of com.google.android.gms:play-services-analytics are available.
     Searched in the following locations:
         repo1.maven.org/maven2/com/google/android/gms/play-services-analytics/maven-metadata.xml
         repo1.maven.org/maven2/com/google/android/gms/play-services-analytics/
         jcenter.bintray.com/com/google/android/gms/play-services-analytics/maven-metadata.xml
         jcenter.bintray.com/com/google/android/gms/play-services-analytics/
         file:/usr/local/Cellar/android-sdk/24.4.1_1/extras/android/m2repository/com/google/android/gms/play-services-analytics/maven-metadata.xml
         file:/usr/local/Cellar/android-sdk/24.4.1_1/extras/android/m2repository/com/google/android/gms/play-services-analytics/
     Required by:
         :android:unspecified
    Could not find any matches for com.google.android.gms:play-services-location:+ as no versions of com.google.android.gms:play-services-location are available.
     Searched in the following locations:
         repo1.maven.org/maven2/com/google/android/gms/play-services-location/maven-metadata.xml
         repo1.maven.org/maven2/com/google/android/gms/play-services-location/
         jcenter.bintray.com/com/google/android/gms/play-services-location/maven-metadata.xml
         jcenter.bintray.com/com/google/android/gms/play-services-location/
         file:/usr/local/Cellar/android-sdk/24.4.1_1/extras/android/m2repository/com/google/android/gms/play-services-location/maven-metadata.xml
         file:/usr/local/Cellar/android-sdk/24.4.1_1/extras/android/m2repository/com/google/android/gms/play-services-location/
     Required by:
         :android:unspecified</p>
  </blockquote></li>
  <li><p>Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.</p></li>
  </ul>