添加dialogflow依赖项时构建失败

时间:2019-05-19 14:46:51

标签: java android gradle build dialogflow

当我添加

implementation 'com.google.cloud:google-cloud-dialogflow:0.92.0-alpha'

到我的java / android项目构建失败,并显示以下消息:发现重复的类:

Duplicate class com.google.api.Advice found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Advice$1 found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Advice$Builder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.AdviceOrBuilder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.AnnotationsProto found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.AuthProto found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.AuthProvider found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.AuthProvider$1 found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.AuthProvider$Builder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.AuthProviderOrBuilder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.AuthRequirement found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.AuthRequirement$1 found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.AuthRequirement$Builder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.AuthRequirementOrBuilder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Authentication found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Authentication$1 found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Authentication$Builder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.AuthenticationOrBuilder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.AuthenticationRule found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.AuthenticationRule$1 found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.AuthenticationRule$Builder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.AuthenticationRuleOrBuilder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.AuthorizationConfig found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.AuthorizationConfig$1 found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.AuthorizationConfig$Builder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.AuthorizationConfigOrBuilder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.AuthorizationConfigProto found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Backend found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Backend$1 found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Backend$Builder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.BackendOrBuilder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.BackendProto found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.BackendRule found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.BackendRule$1 found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.BackendRule$Builder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.BackendRuleOrBuilder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Billing found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Billing$1 found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Billing$BillingDestination found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Billing$BillingDestination$Builder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Billing$BillingDestinationOrBuilder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Billing$Builder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.BillingOrBuilder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.BillingProto found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.ChangeType found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.ChangeType$1 found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.ConfigChange found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.ConfigChange$1 found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.ConfigChange$Builder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.ConfigChangeOrBuilder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.ConfigChangeProto found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.ConsumerProto found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Context found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Context$1 found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Context$Builder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.ContextOrBuilder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.ContextProto found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.ContextRule found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.ContextRule$1 found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.ContextRule$Builder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.ContextRuleOrBuilder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Control found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Control$1 found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Control$Builder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.ControlOrBuilder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.ControlProto found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.CustomHttpPattern found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.CustomHttpPattern$1 found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.CustomHttpPattern$Builder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.CustomHttpPatternOrBuilder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Distribution found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Distribution$1 found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Distribution$BucketOptions found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Distribution$BucketOptions$Builder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Distribution$BucketOptions$Explicit found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Distribution$BucketOptions$Explicit$Builder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Distribution$BucketOptions$ExplicitOrBuilder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Distribution$BucketOptions$Exponential found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Distribution$BucketOptions$Exponential$Builder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Distribution$BucketOptions$ExponentialOrBuilder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Distribution$BucketOptions$Linear found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Distribution$BucketOptions$Linear$Builder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Distribution$BucketOptions$LinearOrBuilder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Distribution$BucketOptions$OptionsCase found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Distribution$BucketOptionsOrBuilder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Distribution$Builder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Distribution$Range found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Distribution$Range$Builder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Distribution$RangeOrBuilder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.DistributionOrBuilder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.DistributionProto found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Documentation found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Documentation$1 found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Documentation$Builder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.DocumentationOrBuilder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.DocumentationProto found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.DocumentationRule found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.DocumentationRule$1 found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.DocumentationRule$Builder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.DocumentationRuleOrBuilder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Endpoint found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Endpoint$1 found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Endpoint$Builder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.EndpointOrBuilder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.EndpointProto found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Experimental found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Experimental$1 found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Experimental$Builder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.ExperimentalOrBuilder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.ExperimentalProto found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Http found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Http$1 found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)
Duplicate class com.google.api.Http$Builder found in modules classes.jar (com.google.firebase:protolite-well-known-types:16.0.1) and proto-google-common-protos-1.11.0.jar (com.google.api.grpc:proto-google-common-protos:1.11.0)

我不打算包含整个stacktrace,因为它太长了以至于不能适合本篇文章(大约65000个字符,就像在每一行中一样,直到stacktrace结束为止)。 大多数冲突的类似乎是firebase类。 删除对话流依赖项后,我的项目将正常构建。 这些都是我的依赖项:

dependencies {
    implementation fileTree(include: ['*.aar', '*.jar'], dir: 'libs')
    implementation project(':pocketsphinx-android-5prealpha-release')
    implementation 'androidx.preference:preference:1.1.0-alpha05'
    implementation 'androidx.appcompat:appcompat:1.1.0-alpha05'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    implementation 'androidx.gridlayout:gridlayout:1.0.0'
    implementation 'androidx.recyclerview:recyclerview:1.1.0-alpha05'
    implementation 'androidx.cardview:cardview:1.0.0'
    implementation 'androidx.palette:palette-ktx:1.0.0'
    implementation 'com.google.android.material:material:1.1.0-alpha06'
    implementation 'com.google.firebase:firebase-core:16.0.9'
    implementation 'com.google.firebase:firebase-database:17.0.0'
    implementation 'com.google.firebase:firebase-storage:17.0.0'
    implementation 'com.google.firebase:firebase-auth:17.0.0'
    implementation 'com.google.firebase:firebase-firestore:19.0.0'
    implementation 'com.google.android.gms:play-services-auth:16.0.1'
    implementation 'com.google.cloud:google-cloud-dialogflow:0.47.0-alpha'
    implementation 'com.mikhaellopez:circularimageview:3.2.0'
    implementation 'com.google.ar.sceneform.ux:sceneform-ux:1.9.0'
    implementation 'com.google.ar.sceneform:core:1.9.0'
    implementation 'com.google.ar:core:1.9.0'
    implementation 'com.github.AppIntro:AppIntro:v5.1.0'
    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
    implementation 'com.crashlytics.sdk.android:crashlytics:2.10.0'
    testImplementation 'junit:junit:4.13-beta-2'
    androidTestImplementation 'androidx.test:runner:1.2.0-beta01'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0-beta01'
}

我不知道这是由什么引起的。 感谢您的帮助。

1 个答案:

答案 0 :(得分:1)

这为我解决了构建问题:

implementation('com.google.cloud:google-cloud-dialogflow:0.93.0-alpha'){
     exclude group: 'com.google.api.grpc'
     exclude group: 'com.google.protobuf'
}

我认为您可能只需要第一行排除行,但是对我来说,这两个组都有重复的类。

相关问题