Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run with android #12

Closed
henrycity opened this issue Jan 24, 2017 · 8 comments
Closed

Cannot run with android #12

henrycity opened this issue Jan 24, 2017 · 8 comments

Comments

@henrycity
Copy link

After running these commands
npm install
react-native link

If I run it on Genymotion, I get this error. I also test it with iOS and it does not work either.

google-services plugin could not detect any version for com.google.android.gms or com.google.firebase, default version: 9.0.0 will be used.
please apply google-services plugin at the bottom of the build file.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> Cannot evaluate module react-native-oauth : Configuration with name 'default' not found.
@iamkyleee
Copy link

Receiving the same error :(

@auser
Copy link
Contributor

auser commented Jan 26, 2017

Do you have the google-services plugin at the bottom of the android build.gradle?

What's the error on ios?

@iamkyleee
Copy link

Was able to fix by updating google services and repository and configuring android sdk path via local.properties and fixed ios by dragging google services via xcode not finder

@auser
Copy link
Contributor

auser commented Jan 26, 2017

So is this a resolved issue then for @iamkyleee and @tvtri96 ?

@iamkyleee
Copy link

i have resolved my issue. not sure about @tvtri96 :)

by the way i really appreciate this library. thank you so much 👍 @auser

@auser auser closed this as completed Jan 26, 2017
@henrycity
Copy link
Author

@iamkyleee : Can you tell it clearer? I do not understand it fully? If you have a picture, it would be very great.

  1. Android: Do you mean that I have to update google services and repository in Genymotion? Also, what do you mean configure android sdk path by local.properties?
  2. iOS: Which file is the google services? And how can I drag it? As I am not used to xCode, can you show me a picture?

@henrycity
Copy link
Author

@auser : My error on iOS is the same with this one. #7

@henrycity
Copy link
Author

I manage to fix the error on Android by updating gradle-wrapper.properties file.
Change gradle version from 2.4 to 2.10
distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants