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

Got error with BuildCoinfig.class after updating to 2.0.0 #189

Open
rassl11 opened this issue Dec 21, 2024 · 5 comments
Open

Got error with BuildCoinfig.class after updating to 2.0.0 #189

rassl11 opened this issue Dec 21, 2024 · 5 comments

Comments

@rassl11
Copy link

rassl11 commented Dec 21, 2024

ERROR:/Users/.gradle/caches/transforms-3/bb8cae490f23f768812abb34c4b78de0/transformed/jetified-android-1.16.3-runtime.jar: R8: Type com.segment.analytics.BuildConfig is defined multiple times: /Users/rasul/.gradle/caches/transforms-3/bb8cae490f23f768812abb34c4b78de0/transformed/jetified-android-1.16.3-runtime.jar:com/segment/analytics/BuildConfig.class, /Users/build/segment_analytics/intermediates/runtime_library_classes_jar/debug/classes.jar:com/segment/analytics/BuildConfig.class

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:minifyProdDebugWithR8'.

A failure occurred while executing com.android.build.gradle.internal.tasks.R8Task$R8Runnable
Compilation failed to complete, origin: /Users/.gradle/caches/transforms-3/bb8cae490f23f768812abb34c4b78de0/transformed/jetified-android-1.16.3-runtime.jar:com/segment/analytics/BuildConfig.class

  • Try:

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

BUILD FAILED in 42s
Error: Gradle task assembleProdDebug failed with exit code 1

@rassl11 rassl11 closed this as completed Dec 23, 2024
@rassl11 rassl11 reopened this Dec 23, 2024
@rassl11
Copy link
Author

rassl11 commented Dec 23, 2024

environment:
sdk: ">=3.2.0"

segment_analytics: ^1.1.2
customer_io: ^2.0.0

@Shahroz16
Copy link
Collaborator

Hey @rassl11, thank you for reaching out, and apologies for the inconvenience. It seems like there is an incompatibility issue with the Segment flutter plugin, we are looking into it.

@Shahroz16
Copy link
Collaborator

Shahroz16 commented Jan 6, 2025

Hey @rassl11, did it fix for you? After updating the Flutter version and installing it clean, I am not able to reproduce this issue.

@rassl11
Copy link
Author

rassl11 commented Jan 7, 2025

Hi @Shahroz16 still got this error

ERROR:/Users/.gradle/caches/transforms-3/79e4d0b3a89a48f58a0186d544819392/transformed/jetified-android-1.16.3-runtime.jar: R8: Type com.segment.analytics.BuildConfig is defined multiple times: /Users/.gradle/caches/transforms-3/79e4d0b3a89a48f58a0186d544819392/transformed/jetified-android-1.16.3-runtime.jar:com/segment/analytics/BuildConfig.class, /Users/build/segment_analytics/intermediates/runtime_library_classes_jar/debug/classes.jar:com/segment/analytics/BuildConfig.class

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:minifyProdDebugWithR8'.

A failure occurred while executing com.android.build.gradle.internal.tasks.R8Task$R8Runnable
Compilation failed to complete, origin: /Users/.gradle/caches/transforms-3/79e4d0b3a89a48f58a0186d544819392/transformed/jetified-android-1.16.3-runtime.jar:com/segment/analytics/BuildConfig.class

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.27.1, on macOS 15.1 24B83 darwin-arm64, locale ru-UZ)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.1)
[✓] VS Code (version 1.74.0)
[✓] Connected device (5 available)
[✓] Network resources

• No issues found!

environment:
sdk: ">=3.2.0"

@Shahroz16
Copy link
Collaborator

Hey @rassl11 I tried reproducing it locally by adding the segment_analytics package too but I am unable to reproduce it.
Can you please share a sample project with CustomerIO installed which can help us reproduce this issue?

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

2 participants