question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Default FirebaseApp is not initialized in this process. Make sure to call FirebaseApp.initializeApp(Context) first.

See original GitHub issue

my react native apps build was success, no error. but when I try example code in example folder, I got above error Default FirebaseApp is not initialized in this process. Make sure to call FirebaseApp.initializeApp(Context) first.

screenshot_2017-09-06-19-11-18 1

if I put apply plugin: 'com.google.gms.google-services' line in the end of android/app/build.gradle, I got an error when built it, but when I commented it, its going well. @evollu @benoist @ibratoev @radev @zaro @jerolimov

what should I do? its been 3 days im working on it

here is my package.json

{
  "dependencies": {
    "firebase": "^4.3.0",
    "moment": "^2.18.1",
    "react": "16.0.0-alpha.12",
    "react-native": "0.47.2",
    "react-native-camera": "git+https://github.com/lwansbrough/react-native-camera.git",
    "react-native-elements": "^0.16.0",
    "react-native-fcm": "^9.1.0",
    "react-native-fetch-blob": "^0.10.8",
    "react-native-google-signin": "^0.12.0",
    "react-native-linear-gradient": "^2.2.0",
    "react-native-progress": "^3.4.0",
    "react-native-tabs": "^1.0.9",
    "react-native-vector-icons": "^4.3.0",
    "react-navigation": "^1.0.0-beta.11",
    "react-redux": "^5.0.6",
    "redux": "^3.7.2",
    "redux-thunk": "^2.2.0"
  },
  "devDependencies": {
    "babel-jest": "20.0.3",
    "babel-preset-react-native": "3.0.1",
    "jest": "20.0.4",
    "react-test-renderer": "16.0.0-alpha.12"
  },
  "jest": {
    "preset": "react-native"
  }

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
evollucommented, Sep 6, 2017

apply plugin: 'com.google.gms.google-services' is required. try apply it on the top?

4reactions
edycommented, Feb 11, 2018

I had to add the following lines to MainApplication.java to get it working:

  @Override
  public void onCreate() {
    super.onCreate();
    SoLoader.init(this, /* native exopackage */ false);
    try {
        FirebaseApp.initializeApp(this);
    }
    catch (Exception e) {
    }
  }
Read more comments on GitHub >

github_iconTop Results From Across the Web

Default FirebaseApp is not initialized - android - Stack Overflow
Make sure to call FirebaseApp.initializeApp(Context) first. in our Android app in which we just added Firebase Remote Config. The stack trace is as...
Read more >
How can I fix 'Default FirebaseApp is not initialized in ... - MSDN
1.Package name in AndroidManifest.xml is identical to one in the google-services.json ; 2. google-services.json build action is set to ...
Read more >
Default FirebaseApp is not initialized in this process. Make ...
The Firebase SDK should be initialised automatically on Android. I'd suggest checking your application's startup logs to make sure there aren't ...
Read more >
FirebaseApp is not initialized in this process. Make sure to call ...
Firebase – Default FirebaseApp is not initialized in this process. Make sure to call FirebaseApp.initializeApp(Context) first. firebasexamarinxamarin.forms.
Read more >
FirebaseApp - Google
Use of Firebase in processes other than the main process is not supported and will ... Returns the default (first initialized) instance of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found