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

React Native - The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher #1734

Closed
2 tasks
cristianoccazinsp opened this issue May 1, 2022 · 2 comments
Labels
bug Confirmed bug released This feature/bug fix has been released

Comments

@cristianoccazinsp
Copy link

Describe the bug

Bugsnag hardcodes the kotlin version, which results in the following error when trying to use gradle 7.x

  • What went wrong:
    The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher.
    The following dependencies do not satisfy the required version:
    project ':bugsnag_react-native' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.61

Steps to reproduce

Compile with the following:

distributionUrl=https://services.gradle.org/distributions/gradle-7.4.2-all.zip

dependencies {
        classpath("com.android.tools.build:gradle:7.+")
        classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.21'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
        classpath "com.bugsnag:bugsnag-android-gradle-plugin:7.+"
    }

./node_modules/@bugsnag/react-native/android/build.gradle

Screen Shot 2022-05-01 at 18 50 19

Environment

  • Android version: Any
  • "@bugsnag/react-native": "7.16.3",

Example Repo

  • Create a minimal repository that can reproduce the issue
  • Link to it here:

Example code snippet

# (Insert code sample to reproduce the problem)
Error messages:

@luke-belton luke-belton transferred this issue from bugsnag/bugsnag-js May 6, 2022
@luke-belton luke-belton transferred this issue from bugsnag/bugsnag-android-gradle-plugin May 6, 2022
@luke-belton
Copy link
Member

Hi @cristianoccazinsp - thanks for raising this. We're going to investigate and will keep you updated on this thread 👍

@luke-belton luke-belton added bug Confirmed bug backlog We hope to fix this feature/bug in the future labels May 12, 2022
@luke-belton
Copy link
Member

Hi @cristianoccazinsp - we've added a fix for this, which was released in v7.16.7 🎉 Thanks again for reporting!

@luke-belton luke-belton added released This feature/bug fix has been released and removed backlog We hope to fix this feature/bug in the future labels Jun 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bug released This feature/bug fix has been released
Projects
None yet
Development

No branches or pull requests

2 participants