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

Can't run on android #46

Closed
Panda313 opened this issue Apr 11, 2017 · 5 comments
Closed

Can't run on android #46

Panda313 opened this issue Apr 11, 2017 · 5 comments

Comments

@Panda313
Copy link

Hi guys

The lib is working like a charm on iOS (and thanks a lot for such an amazing job) ; However, I can't get it working on Android.

capture d ecran 2017-04-11 a 11 24 10

Here are my graddle config ;
app.graddle :
capture d ecran 2017-04-11 a 11 21 48
capture d ecran 2017-04-11 a 11 22 03
capture d ecran 2017-04-11 a 11 22 15

Also, my android device config :
capture d ecran 2017-04-11 a 11 21 27

I digged into the web and I think it might be a play-services dependices error or something like that, but I can't figure it out.

config :
"firebase": "^3.7.5",
"react": "^15.4.2",
"react-native": "^0.42.2",
"react-native-firebase": "^1.0.0-alpha12",

Any ideas ?

Thanks

Romain

@Ehesp
Copy link
Member

Ehesp commented Apr 11, 2017

See #44

Emulator doesnt have Play Services. Need to add this to a touble shooting guide!

@chrisbianca
Copy link
Contributor

With the next release it will default to prompt to install Play Services rather than just throwing an error which will hopefully make it clearer as well

@Salakar
Copy link
Member

Salakar commented Apr 11, 2017

Code 2 just means it's out of date, you can update your emulator image and make a new one to fix this, but you can also just turn off this error as its generally fine if it's slightly out of date.

Turn off error:
In your initializeApp for Rnfirebase add the config option errorOnMissingPlayServices and set to false.

@chrisbianca @Ehesp might be worth making it a warning instead if its code 2 I reckon, and updating the error description to be more specific, like if you're on a geny motion device etc etc? It's just JS side that'd need changing

@Panda313
Copy link
Author

Thanks guys,

Actually I was pretty sur Google services were installed and up to date. I'll have a deeper look. i'll keep you posted this afternoon.

Thanks

@Panda313
Copy link
Author

You were right, I updated everything and now it's working. Thanks again !

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

4 participants