React-native-push-notification: [Android] Build failed React Native 0.18.0-rc

Created on 10 Jan 2016  路  4Comments  路  Source: zo0r/react-native-push-notification

I have some build error

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> A problem occurred configuring project ':react-native-push-notification'.
   > Could not resolve all dependencies for configuration ':react-native-push-notification:_debugCompile'.
      > Could not find com.google.android.gms:play-services-gcm:8.3.0.
        Searched in the following locations:
            file:/Users/ahmed/.m2/repository/com/google/android/gms/play-services-gcm/8.3.0/play-services-gcm-8.3.0.pom
            file:/Users/ahmed/.m2/repository/com/google/android/gms/play-services-gcm/8.3.0/play-services-gcm-8.3.0.jar
            https://jcenter.bintray.com/com/google/android/gms/play-services-gcm/8.3.0/play-services-gcm-8.3.0.pom
            https://jcenter.bintray.com/com/google/android/gms/play-services-gcm/8.3.0/play-services-gcm-8.3.0.jar
            file:/usr/local/Cellar/android-sdk/24.3.4/extras/android/m2repository/com/google/android/gms/play-services-gcm/8.3.0/play-services-gcm-8.3.0.pom
            file:/usr/local/Cellar/android-sdk/24.3.4/extras/android/m2repository/com/google/android/gms/play-services-gcm/8.3.0/play-services-gcm-8.3.0.jar
        Required by:
            myApp:react-native-push-notification:unspecified

I tried to add compile 'com.google.android.gms:play-services-gcm:8.3.0' to build.gradle but same error also tried to add classpath 'com.google.gms:google-services:1.5.0-beta2' to android/build.gradle

any solutions ?

Most helpful comment

Have you installed google-play-services and google-repository?

If not, type android in console and check:
SS

All 4 comments

Have you installed google-play-services and google-repository?

If not, type android in console and check:
SS

The Google Repository was missed .

@zo0r Thanks :)

should add instruction to readme.
i have got this problem today, and i spent 4 hour to resolve this
:(

Was this page helpful?
0 / 5 - 0 ratings