Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Saliheen opened this issue Apr 18, 2024 · 4 comments

Comments

@Saliheen
Copy link

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.

@zhe1ka
Copy link

zhe1ka commented Apr 26, 2024

+1

@LucasTrombim
Copy link

LucasTrombim commented Apr 29, 2024

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
Copy link

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'

@abubakarasifmughal
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants