react-native-background-upload icon indicating copy to clipboard operation
react-native-background-upload copied to clipboard

I had updated the targetSdkVersion in my build gradle to 28 and the library just keeps crashing my app.

Open Zabi-Progton opened this issue 6 years ago • 9 comments

Why is this happening, and what is the workaround for this can someone please assist or fix this issue.

Zabi-Progton avatar Sep 13 '19 07:09 Zabi-Progton

same here

bencIsTheGoat avatar Sep 18 '19 19:09 bencIsTheGoat

I had the same issue. Had to change the build.grade file in my node_modules folder. The steps are:

  1. Go to your ~node_modules/react-native-background-upload/android/build.gradle
  2. change minSdk version to 18
  3. Change the dependencies for the uploadservice from 3.4.2 to 3.5.0
  4. Run react-native run-android

You have to repeat these steps everytime you run npm/yarn. I haven't had time to find a solution to this but I'll do a PR if all else fails.

teeolendo avatar Sep 19 '19 23:09 teeolendo

@Zabi-Progton @bcutler94 thanks for reporting the issue.

@teeolendo Much appreciated for posting that solution. PR would be welcome if you have time to submit one!

TSMMark avatar Sep 24 '19 15:09 TSMMark

Submitted!

teeolendo avatar Sep 24 '19 18:09 teeolendo

@Zabi-Progton and @bcutler94 if you get a chance please test out @teeolendo's branch and let us know if that solved your problem.

TSMMark avatar Oct 01 '19 15:10 TSMMark

@TSMMark worked for me

felri avatar Jan 07 '20 18:01 felri

I'm running into this same issue with the crashing. Is the current solution still to install the other branch?

dbirchfield80 avatar Feb 21 '20 04:02 dbirchfield80

@dbirchfield80 What I did was I removed the folder from node_modules to my root and made the changes myself, it works normally now but I won't be getting new updates in the future until this bug PR is merged.

felri avatar Feb 21 '20 12:02 felri

Fork and Change the dependencies for the uploadservice from 3.4.2 to 3.5.2 no problem on 7 and 9...

MR03web avatar Jun 02 '20 08:06 MR03web