Skip to content

React native app crashes on start  #25387

@uendar

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.Type: QuestionIssues that are actually questions and not bug reports.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions