Skip to content

React native app crashes on start  #25387

Closed

Description

@uendar

I updated the react native android support libraries to AndroidX and now when i run react-native run-android my app opens and crashes in a second.

buildscript {
    ext {
            buildToolsVersion = "28.0.3"
            minSdkVersion = 16
            compileSdkVersion = 28
            targetSdkVersion = 28
            supportLibVersion = "28.0.3"
            googlePlayServicesAuthVersion = "16.1.0"
           firebaseVersion = '17.6.0'
    }
    repositories {
        google()
        jcenter()

    }

    dependencies {

         classpath 'com.android.tools.build:gradle:3.3.0'
         classpath 'com.google.gms:google-services:4.0.0'
}
}
dependencies {

   implementation fileTree(dir: "libs", include: ["*.jar"])
   implementation 'androidx.appcompat:appcompat:1.0.0'
   implementation 'androidx.legacy:legacy-support-core-utils:1.0.0'
  implementation 'com.google.firebase:firebase-core:16.0.9'
   implementation 'com.google.firebase:firebase-messaging:17.3.4'
   implementation 'com.google.android.gms:play-services-auth:16.0.1'
   implementation ("com.facebook.react:react-native:+") { force = true }  // From node_modules
   implementation project(':realm')
   implementation project(':react-native-firebase')
   implementation project(':react-native-fs')
   implementation project(':react-native-vector-icons')
   implementation project(':react-native-image-picker')
   implementation project(':rn-fetch-blob')
   implementation project(':react-native-image-crop-picker')
   implementation project(':react-native-exit-app')
   implementation project(':react-native-onesignal')
   implementation project(':react-native-sensor-manager')
   implementation project(':react-native-smart-barcode')
   implementation(project(":react-native-push-notification"),  {
    exclude group: "com.google.android.gms"
    })
   implementation project(':react-native-linear-gradient')
   implementation project(':react-native-file-picker')
   implementation project(':react-native-doc-viewer')
   implementation project(':react-native-svg')
   implementation project(":react-native-google-signin")
   implementation project(':react-native-spinkit')
   implementation project(':react-native-pdf')
    implementation project(':react-native-gesture-handler')
}

"react": "16.5.0",
    "react-native": "^0.59.9",

I dont know if it is something related with react-native-firebase or not because i migrated from fcm to firebase. Any one issuing same thing ?

Activity

  1. added
    Type: Question
    on Jun 25, 2019
  2. react-native-bot commented on Jun 25, 2019

    @react-native-bot
    Collaborator

    We are automatically closing this issue because it does not appear to follow any of the provided issue templates.

    👉 Click here if you want to report a reproducible bug or regression in React Native.

  3. added
    Ran Commands
    on Jun 25, 2019
  4. locked as resolved and limited conversation to collaborators on Jun 25, 2020
  5. added
    Resolution: Locked
    on Jun 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsResolution: LockedType: Question

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions