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

compile issue when migrating to 2.x.x for android #819

Closed
stefoid opened this issue Apr 27, 2023 · 3 comments
Closed

compile issue when migrating to 2.x.x for android #819

stefoid opened this issue Apr 27, 2023 · 3 comments
Labels
bug Something isn't working Triaged Triaged in JIRA 🚧 Work In Progress

Comments

@stefoid
Copy link

stefoid commented Apr 27, 2023

  • analytics-react-native version: 2.13.5
  • Integrations versions (if used):
  • React Native version: 64.2
  • iOS or Android or both? android

Steps to reproduce
I was recently forced to upgrade the analytics from 1.x.x to 2.13.5
After following the migration steps, I was able to compile and run iOS successfully
However Android fails to compile with the error below (The Kotlin Gradle plugin was loaded multiple times)

gradle-wrapper.properties
distributionUrl=https://services.gradle.org/distributions/gradle-7.5.1-all.zip

Expected behavior

Actual behavior
1_Build.txt

The Kotlin Gradle plugin was loaded multiple times in different subprojects, which is not supported and may break the build.
This might happen in subprojects that apply the Kotlin plugins with the Gradle 'plugins { ... }' DSL if they specify explicit versions, even if the versions are equal.
Please add the Kotlin plugin to the common parent project or the root project, then remove the versions in the subprojects.
If the parent project does not need the plugin, add 'apply false' to the plugin line.
See: https://docs.gradle.org/current/userguide/plugins.html#sec:subprojects_plugins_dsl
The Kotlin plugin was loaded in the following projects: ':segment_analytics-react-native', ':segment_sovran-react-native'

@stefoid stefoid added the bug Something isn't working label Apr 27, 2023
@alanjcharles
Copy link
Contributor

Hi @stefoid sorry to hear you're running into issues. It's hard to say what is happening without more information, I'm afraid. Can you reach out to friends@segment.com? Our support engineers are much better suited to aid in this kind of investigation. If there is a bug we need to resolve, they can escalate it with us accordingly. Thanks!

@oscb
Copy link
Contributor

oscb commented May 22, 2023

@stefoid this issue seems to be happening to a lot of libraries in RN lately but so far haven't seen an actual fix, maybe this solution helps ?

@oscb
Copy link
Contributor

oscb commented Oct 9, 2023

Closing due to inactivity

@oscb oscb closed this as completed Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Triaged Triaged in JIRA 🚧 Work In Progress
Projects
None yet
Development

No branches or pull requests

3 participants