The Android Gradle plugin supports only kotlin-android-extensions Gradle plugin version 1.6.20 and higher.
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.
+1
I resolved this with:
- Go to node_modules/react-native-background-upload/android/build.gradle and make following changes:
- 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"
I resolved this with:
- Go to node_modules/react-native-background-upload/android/build.gradle and make following changes:
- 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.
- kotlinVersion = '1.6.0' => kotlinVersion = '1.6.20'
- classpath 'com.android.tools.build:gradle:3.5.3' => classpath 'com.android.tools.build:gradle:4.1.3'
I resolved this with:
- Go to node_modules/react-native-background-upload/android/build.gradle and make following changes:
- 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.gradledid.
- kotlinVersion = '1.6.0' => kotlinVersion = '1.6.20'
- classpath 'com.android.tools.build:gradle:3.5.3' => classpath 'com.android.tools.build:gradle:4.1.3'
This worked for us. @trusasha Thanks