Giter Site home page Giter Site logo

Comments (11)

avishayil avatar avishayil commented on May 26, 2024 2

@slamus You should install Google Repository in order to fix this issue.

from react-native-onesignal.

avishayil avatar avishayil commented on May 26, 2024

Thanks, we'll add this to the documentation.

from react-native-onesignal.

avishayil avatar avishayil commented on May 26, 2024

Hi @adamrainsby, the latest package should solve this.
No need to install this from the SDK manager now.
Can you please check?
Thanks!

from react-native-onesignal.

avishayil avatar avishayil commented on May 26, 2024

Hi, since you haven't answered I assume that the issue is solved.
Please re-open it if it's necessary.
Thanks!

from react-native-onesignal.

adamrainsby avatar adamrainsby commented on May 26, 2024

Sorry for the late reply. I just updated to 1.1.1 to check and it does still seem to be an issue.

This is the error

* What went wrong:
A problem occurred configuring project ':app'.
> A problem occurred configuring project ':react-native-onesignal'.
   > Could not resolve all dependencies for configuration ':react-native-onesignal:_debugCompile'.
      > Could not find com.google.android.gms:play-services-gcm:8.4.0.
        Searched in the following locations:
            file:/Users/adam/.m2/repository/com/google/android/gms/play-services-gcm/8.4.0/play-services-gcm-8.4.0.pom
            file:/Users/adam/.m2/repository/com/google/android/gms/play-services-gcm/8.4.0/play-services-gcm-8.4.0.jar
            https://jcenter.bintray.com/com/google/android/gms/play-services-gcm/8.4.0/play-services-gcm-8.4.0.pom
            https://jcenter.bintray.com/com/google/android/gms/play-services-gcm/8.4.0/play-services-gcm-8.4.0.jar
            file:/usr/local/opt/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-gcm/8.4.0/play-services-gcm-8.4.0.pom
            file:/usr/local/opt/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-gcm/8.4.0/play-services-gcm-8.4.0.jar
        Required by:
            techspace:react-native-onesignal:unspecified
            techspace:react-native-onesignal:unspecified > com.onesignal:OneSignal:2.1.3
      > Could not find com.google.android.gms:play-services-analytics:8.4.0.
        Searched in the following locations:
            file:/Users/adam/.m2/repository/com/google/android/gms/play-services-analytics/8.4.0/play-services-analytics-8.4.0.pom
            file:/Users/adam/.m2/repository/com/google/android/gms/play-services-analytics/8.4.0/play-services-analytics-8.4.0.jar
            https://jcenter.bintray.com/com/google/android/gms/play-services-analytics/8.4.0/play-services-analytics-8.4.0.pom
            https://jcenter.bintray.com/com/google/android/gms/play-services-analytics/8.4.0/play-services-analytics-8.4.0.jar
            file:/usr/local/opt/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-analytics/8.4.0/play-services-analytics-8.4.0.pom
            file:/usr/local/opt/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-analytics/8.4.0/play-services-analytics-8.4.0.jar
        Required by:
            techspace:react-native-onesignal:unspecified
      > Could not find com.google.android.gms:play-services-location:8.4.0.
        Searched in the following locations:
            file:/Users/adam/.m2/repository/com/google/android/gms/play-services-location/8.4.0/play-services-location-8.4.0.pom
            file:/Users/adam/.m2/repository/com/google/android/gms/play-services-location/8.4.0/play-services-location-8.4.0.jar
            https://jcenter.bintray.com/com/google/android/gms/play-services-location/8.4.0/play-services-location-8.4.0.pom
            https://jcenter.bintray.com/com/google/android/gms/play-services-location/8.4.0/play-services-location-8.4.0.jar
            file:/usr/local/opt/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-location/8.4.0/play-services-location-8.4.0.pom
            file:/usr/local/opt/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-location/8.4.0/play-services-location-8.4.0.jar
        Required by:
            techspace:react-native-onesignal:unspecified
            techspace:react-native-onesignal:unspecified > com.onesignal:OneSignal:2.1.3

from react-native-onesignal.

avishayil avatar avishayil commented on May 26, 2024

Can you try putting this line:

apply plugin: 'com.google.gms.google-services'

At the end of the build.gradle file of the module and report back?
Thanks.

from react-native-onesignal.

adamrainsby avatar adamrainsby commented on May 26, 2024

Isn't the solution just to say to make sure it is installed in the readme?

from react-native-onesignal.

avishayil avatar avishayil commented on May 26, 2024

Well, that's the easy solution. Just wanted to minimize user actions while installing this plugin.

from react-native-onesignal.

slamus avatar slamus commented on May 26, 2024

Hey @avishayil ,

I'm using react-native on OS X, and I'm still getting this error even though I installed the "Google Play Services" package from Android SDK manager...
Here's the error

* What went wrong:
A problem occurred configuring project ':app'.
> A problem occurred configuring project ':react-native-onesignal'.
   > Could not resolve all dependencies for configuration ':react-native-onesignal:_debugCompile'.
      > Could not find com.google.android.gms:play-services-gcm:8.4.0.
        Searched in the following locations:
            file:/Users/slamus/.m2/repository/com/google/android/gms/play-services-gcm/8.4.0/play-services-gcm-8.4.0.pom
            file:/Users/slamus/.m2/repository/com/google/android/gms/play-services-gcm/8.4.0/play-services-gcm-8.4.0.jar
            https://jcenter.bintray.com/com/google/android/gms/play-services-gcm/8.4.0/play-services-gcm-8.4.0.pom
            https://jcenter.bintray.com/com/google/android/gms/play-services-gcm/8.4.0/play-services-gcm-8.4.0.jar
            file:/Users/slamus/dev/platform-app/node_modules/node_modules/react-native/android/com/google/android/gms/play-services-gcm/8.4.0/play-services-gcm-8.4.0.pom
            file:/Users/slamus/dev/platform-app/node_modules/node_modules/react-native/android/com/google/android/gms/play-services-gcm/8.4.0/play-services-gcm-8.4.0.jar
            file:/usr/local/opt/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-gcm/8.4.0/play-services-gcm-8.4.0.pom
            file:/usr/local/opt/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-gcm/8.4.0/play-services-gcm-8.4.0.jar
        Required by:
            WePlatform:react-native-onesignal:unspecified
            WePlatform:react-native-onesignal:unspecified > com.onesignal:OneSignal:2.1.3
      > Could not find com.google.android.gms:play-services-analytics:8.4.0.
        Searched in the following locations:
            file:/Users/slamus/.m2/repository/com/google/android/gms/play-services-analytics/8.4.0/play-services-analytics-8.4.0.pom
            file:/Users/slamus/.m2/repository/com/google/android/gms/play-services-analytics/8.4.0/play-services-analytics-8.4.0.jar
            https://jcenter.bintray.com/com/google/android/gms/play-services-analytics/8.4.0/play-services-analytics-8.4.0.pom
            https://jcenter.bintray.com/com/google/android/gms/play-services-analytics/8.4.0/play-services-analytics-8.4.0.jar
            file:/Users/slamus/dev/platform-app/node_modules/node_modules/react-native/android/com/google/android/gms/play-services-analytics/8.4.0/play-services-analytics-8.4.0.pom
            file:/Users/slamus/dev/platform-app/node_modules/node_modules/react-native/android/com/google/android/gms/play-services-analytics/8.4.0/play-services-analytics-8.4.0.jar
            file:/usr/local/opt/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-analytics/8.4.0/play-services-analytics-8.4.0.pom
            file:/usr/local/opt/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-analytics/8.4.0/play-services-analytics-8.4.0.jar
        Required by:
            WePlatform:react-native-onesignal:unspecified
      > Could not find com.google.android.gms:play-services-location:8.4.0.
        Searched in the following locations:
            file:/Users/slamus/.m2/repository/com/google/android/gms/play-services-location/8.4.0/play-services-location-8.4.0.pom
            file:/Users/slamus/.m2/repository/com/google/android/gms/play-services-location/8.4.0/play-services-location-8.4.0.jar
            https://jcenter.bintray.com/com/google/android/gms/play-services-location/8.4.0/play-services-location-8.4.0.pom
            https://jcenter.bintray.com/com/google/android/gms/play-services-location/8.4.0/play-services-location-8.4.0.jar
            file:/Users/slamus/dev/platform-app/node_modules/node_modules/react-native/android/com/google/android/gms/play-services-location/8.4.0/play-services-location-8.4.0.pom
            file:/Users/slamus/dev/platform-app/node_modules/node_modules/react-native/android/com/google/android/gms/play-services-location/8.4.0/play-services-location-8.4.0.jar
            file:/usr/local/opt/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-location/8.4.0/play-services-location-8.4.0.pom
            file:/usr/local/opt/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-location/8.4.0/play-services-location-8.4.0.jar
        Required by:
            WePlatform:react-native-onesignal:unspecified
            WePlatform:react-native-onesignal:unspecified > com.onesignal:OneSignal:2.1.3

And Here's the package I installed:
screen shot 2016-03-27 at 10 15 17

What's wrong ?

Thanks :)

from react-native-onesignal.

slamus avatar slamus commented on May 26, 2024

@avishayil Thanks it works now :)

from react-native-onesignal.

yogiben avatar yogiben commented on May 26, 2024

Should be added to readme.

Same goes for Google Play Services.

from react-native-onesignal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.