-
Notifications
You must be signed in to change notification settings - Fork 658
Closed as duplicate of#5997
Labels
Description
protobuf = "4.29.2"
protobufPlugin = "0.9.4"
firebaseBom = "33.11.0"
protobuf-kotlin-lite = { group = "com.google.protobuf", name = "protobuf-kotlin-lite", version.ref = "protobuf" }
protobuf-protoc = { group = "com.google.protobuf", name = "protoc", version.ref = "protobuf" }
firebase-inappmessaging-display = { group = "com.google.firebase", name = "firebase-inappmessaging-display" }
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
> Duplicate class com.google.protobuf.DescriptorProtos found in modules protobuf-javalite-4.29.2.jar -> protobuf-javalite-4.29.2 (com.google.protobuf:protobuf-javalite:4.29.2) and protolite-well-known-types-18.0.1.aar -> protolite-well-known-types-18.0.1-runtime (com.google.firebase:protolite-well-known-types:18.0.1)
Duplicate class com.google.protobuf.DescriptorProtos$1 found in modules protobuf-javalite-4.29.2.jar -> protobuf-javalite-4.29.2 (com.google.protobuf:protobuf-javalite:4.29.2) and protolite-well-known-types-18.0.1.aar -> protolite-well-known-types-18.0.1-runtime (com.google.firebase:protolite-well-known-types:18.0.1)
Duplicate class com.google.protobuf.DescriptorProtos$DescriptorProto found in modules protobuf-javalite-4.29.2.jar -> protobuf-javalite-4.29.2 (com.google.protobuf:protobuf-javalite:4.29.2) and protolite-well-known-types-18.0.1.aar -> protolite-well-known-types-18.0.1-runtime (com.google.firebase:protolite-well-known-types:18.0.1)
Duplicate class com.google.protobuf.DescriptorProtos$DescriptorProto$Builder found in modules protobuf-javalite-4.29.2.jar -> protobuf-javalite-4.29.2 (com.google.protobuf:protobuf-javalite:4.29.2) and protolite-well-known-types-18.0.1.aar -> protolite-well-known-types-18.0.1-runtime (com.google.firebase:protolite-well-known-types:18.0.1)
Duplicate class com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange found in modules protobuf-javalite-4.29.2.jar -> protobuf-javalite-4.29.2 (com.google.protobuf:protobuf-javalite:4.29.2) and protolite-well-known-types-18.0.1.aar -> protolite-well-known-types-18.0.1-runtime (com.google.firebase:protolite-well-known-types:18.0.1)
Duplicate class com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange$Builder found in modules protobuf-javalite-4.29.2.jar -> protobuf-javalite-4.29.2 (com.google.protobuf:protobuf-javalite:4.29.2) and protolite-well-known-types-18.0.1.aar -> protolite-well-known-types-18.0.1-runtime (com.google.firebase:protolite-well-known-types:18.0.1)
Duplicate class com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRangeOrBuilder found in modules protobuf-javalite-4.29.2.jar -> protobuf-javalite-4.29.2 (com.google.protobuf:protobuf-javalite:4.29.2) and protolite-well-known-types-18.0.1.aar -> protolite-well-known-types-18.0.1-runtime (com.google.firebase:protolite-well-known-types:18.0.1)
Duplicate class com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange found in modules protobuf-javalite-4.29.2.jar -> protobuf-javalite-4.29.2 (com.google.protobuf:protobuf-javalite:4.29.2) and protolite-well-known-types-18.0.1.aar -> protolite-well-known-types-18.0.1-runtime (com.google.firebase:protolite-well-known-types:18.0.1)
-----------
* What went wrong:
Execution failed for task ':app:*'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.MergeJavaResWorkAction
> 2 files found with path 'google/protobuf/descriptor.proto' from inputs:
- com.google.firebase:protolite-well-known-types:18.0.1/classes.jar
- com.google.protobuf:protobuf-javalite:4.29.2/protobuf-javalite-4.29.2.jar
Adding a packaging block may help, please refer to
https://developer.android.com/reference/tools/gradle-api/com/android/build/api/dsl/Packaging
for more information
* Try:
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
Temporary I solved it with:
implementation(libs.firebase.inappmessaging.display) {
exclude(group = "com.google.firebase", module = "protolite-well-known-types")
}