Skip to content

Add guide for configuring Google Play Services #216

@tocttou

Description

@tocttou

The Android emulator I am using has Google Play Services 10.9.30 (from Settings -> Apps -> App Info -> Google Play Services). The setup instructions ask the user to link v11.0.0 of the Firebase libs, which gives the error "[app-name] won't run unless you update Google Play Services" - which can only be done by updating the API version of the emulator to the latest one (API 26 at the moment).

I got my app running by replacing:

android/app/build.gradle

    compile "com.google.firebase:firebase-core:11.0.0"
    compile "com.google.firebase:firebase-auth:11.0.0"
    compile "com.google.firebase:firebase-crash:11.0.0"
    compile "com.google.firebase:firebase-database:11.0.0"
    compile "com.google.firebase:firebase-messaging:11.0.0"
    compile "com.google.firebase:firebase-storage:11.0.0"
    compile fileTree(dir: "libs", include: ["*.jar"])
    compile "com.android.support:appcompat-v7:23.0.1"
    compile "com.facebook.react:react-native:+"  // From node_modules

with:

android/app/build.gradle

    compile "com.google.firebase:firebase-core:10.0.1"
    compile "com.google.firebase:firebase-auth:10.0.1"
    compile "com.google.firebase:firebase-crash:10.0.1"
    compile "com.google.firebase:firebase-database:10.0.1"
    compile "com.google.firebase:firebase-messaging:10.0.1"
    compile "com.google.firebase:firebase-storage:10.0.1"
    compile fileTree(dir: "libs", include: ["*.jar"])
    compile "com.android.support:appcompat-v7:23.0.1"
    compile "com.facebook.react:react-native:+"  // From node_modules

Note that Firebase:Perf does not work with this setup.
Can we have this documented?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions