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

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

Open Saliheen opened this issue 1 year ago • 5 comments

FAILURE: Build failed with an exception.

  • What went wrong: The Android Gradle plugin supports only kotlin-android-extensions Gradle plugin version 1.6.20 and higher. The following dependencies do not satisfy the required version: project ':react-native-background-upload' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.0

  • Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

Saliheen avatar Apr 18 '24 13:04 Saliheen

+1

zhe1ka avatar Apr 26 '24 07:04 zhe1ka

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"

LucasTrombim avatar Apr 29 '24 15:04 LucasTrombim

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'

trusasha avatar Jun 27 '24 10:06 trusasha

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'

This worked for us. @trusasha Thanks

abubakarasifmughal avatar Aug 30 '24 21:08 abubakarasifmughal