react-native-background-upload: The package crashes Android app version

Hello,

I’m developing a cross-platform application and the package is working on IOS but causes app crash on Android. The crash appears when I start the app. I assume that is something with my sdk version : buildToolsVersion = "29.0.3" minSdkVersion = 21 compileSdkVersion = 29 targetSdkVersion = 29 supportLibVersion = "28.0.0" kotlinVersion = "1.3.61"

For recat native I’m using "0.63.3.

Is there any chance to run use the package on this version?

Many thanks, Florin

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Reactions: 3
  • Comments: 15 (1 by maintainers)

Most upvoted comments

The solution would be to force using the same version. Add the following before dependencies declaration in app/build.gradle.

Use 4.9.1 or whatever the latest version is at current time.

configurations.all {
    resolutionStrategy.force 'com.squareup.okhttp3:okhttp:4.9.1'
}

dependencies {
//
        debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {
                exclude group:'com.facebook.flipper'
                exclude group:'com.squareup.okhttp3', module:'okhttp'
        }
}

You shouldn’t have to be changing the flipper settings in the dependencies.

Mine work when having this with rn 0.64.2

configurations.all {
    resolutionStrategy.force 'com.squareup.okhttp3:okhttp:4.9.1'
    resolutionStrategy.force 'com.squareup.okhttp3:okhttp-urlconnection:4.9.1'
}

The solution would be to force using the same version. Add the following before dependencies declaration in app/build.gradle.

Use 4.9.1 or whatever the latest version is at current time.

configurations.all {
    resolutionStrategy.force 'com.squareup.okhttp3:okhttp:4.9.1'
}

dependencies {
//
        debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {
                exclude group:'com.facebook.flipper'
                exclude group:'com.squareup.okhttp3', module:'okhttp'
        }
}

You shouldn’t have to be changing the flipper settings in the dependencies.

bro, this worked for me! thanks! “react-native”: “0.65.1”

@petrbela should be fixed if you add both implementation 'com.squareup.okhttp3:okhttp:4.3.0 and implementation 'com.squareup.okhttp3:okhttp:3.X.X (take the specific version from react-native)