Vydia / react-native-background-upload

Upload files in your React Native app even while it's backgrounded. Supports Android and iOS, including camera roll assets.
MIT License
720 stars 325 forks source link

The Android Gradle plugin supports only kotlin-android-extensions Gradle plugin version 1.6.20 and higher. #350

Open Saliheen opened 2 months ago

Saliheen commented 2 months ago

FAILURE: Build failed with an exception.

zhe1ka commented 2 months ago

+1

LucasTrombim commented 2 months ago

I resolved this with:

  1. Go to node_modules/react-native-background-upload/android/build.gradle and make following changes:
  2. Change: apply plugin: 'kotlin-android-extensions' -> apply plugin: 'kotlin-parcelize'

Then you can patch the package with this modification, to make it even if you run "yarn install"

trusasha commented 1 week ago

I resolved this with:

  1. Go to node_modules/react-native-background-upload/android/build.gradle and make following changes:
  2. Change: apply plugin: 'kotlin-android-extensions' -> apply plugin: 'kotlin-parcelize'

Then you can patch the package with this modification, to make it even if you run "yarn install"

For some reason this didn't work for me, but changing the following lines in node_modules/react-native-background-upload/android/build.gradle did.

  1. kotlinVersion = '1.6.0' => kotlinVersion = '1.6.20'
  2. classpath 'com.android.tools.build:gradle:3.5.3' => classpath 'com.android.tools.build:gradle:4.1.3'