Closed chingor13 closed 5 years ago
Title: Cannot be used together with Firestore on Android. Body: I have an app that uses the Firestore library and I also need to use the DialogFlow one, so far I'm using the [V1 library] (https://github.com/dialogflow/dialogflow-android-client) and I don't have any problems, however, as DialogFlow V1 is coming to an end soon, I need to migrate to V2. In my attempts to use this library in conjunction with Firestore, I face problems with class duplication.
The problem is that this lib uses protobuf-java and firestore lib, protobuf-lite, both provide the same classes with different implementations.
I've already checked [this] (https://github.com/googleapis/google-cloud-java/issues/5608) topic that talks about but implementing the suggested solution
configurations.all { exclude group: 'com.google.api.grpc', module: 'proto-google-common-protos' exclude group: 'com.google.protobuf', module: 'protobuf-java' exclude group: 'com.google.guava', module: 'guava-jdk5' }
I have the following error
Supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath: class com.google.cloud.dialogflow.v2beta1.QueryInput, unresolved supertypes: com.google.protobuf.GeneratedMessageV3 class com.google.cloud.dialogflow.v2beta1.QueryInputOrBuilder, unresolved supertypes: com.google.protobuf.MessageOrBuilder class com.google.cloud.dialogflow.v2beta1.TextInput, unresolved supertypes: com.google.protobuf.GeneratedMessageV3 class com.google.cloud.dialogflow.v2beta1.TextInputOrBuilder, unresolved supertypes: com.google.protobuf.MessageOrBuilder class com.google.cloud.dialogflow.v2beta1.TextInput.Builder, unresolved supertypes: com.google.protobuf.GeneratedMessageV3.Builder class com.google.cloud.dialogflow.v2beta1.QueryInput.Builder, unresolved supertypes: com.google.protobuf.GeneratedMessageV3.Builder class com.google.cloud.dialogflow.v2beta1.DetectIntentResponse, unresolved supertypes: com.google.protobuf.GeneratedMessageV3 class com.google.cloud.dialogflow.v2beta1.DetectIntentResponseOrBuilder, unresolved supertypes: com.google.protobuf.MessageOrBuilder
Is there any solution to this?
Tenho um app que utiliza da biblioteca do Firestore e também precisa utilizar a do DialogFlow, até o momento estou utilizando a biblioteca V1 e não enfrento quaisquer problemas, porém, como a V1 do DialogFlow vai ser encerrada em breve, preciso migrar para a V2. Em minhas tentativas de utilizar esta biblioteca juntamente com o Firestore, enfrento problemas de duplicação de classes.
O problema deve-se a que esta lib usa de protobuf-java e a do firestore, protobuf-lite, ambas fornecem as mesmas classes com implementações diferentes
Já verifiquei esse tópico que fala sobre, mas implementando a solução sugerida
configurations.all { exclude group:'com.google.api.grpc',module:'proto-google-common-protos' exclude group: 'com.google.protobuf', module: 'protobuf-java' exclude group: 'com.google.guava',module: 'guava-jdk5' }
Tenho o seguinte erro
Supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath: class com.google.cloud.dialogflow.v2beta1.QueryInput, unresolved supertypes: com.google.protobuf.GeneratedMessageV3 class com.google.cloud.dialogflow.v2beta1.QueryInputOrBuilder, unresolved supertypes: com.google.protobuf.MessageOrBuilder class com.google.cloud.dialogflow.v2beta1.TextInput, unresolved supertypes: com.google.protobuf.GeneratedMessageV3 class com.google.cloud.dialogflow.v2beta1.TextInputOrBuilder, unresolved supertypes: com.google.protobuf.MessageOrBuilder class com.google.cloud.dialogflow.v2beta1.TextInput.Builder, unresolved supertypes: com.google.protobuf.GeneratedMessageV3.Builder class com.google.cloud.dialogflow.v2beta1.QueryInput.Builder, unresolved supertypes: com.google.protobuf.GeneratedMessageV3.Builder class com.google.cloud.dialogflow.v2beta1.DetectIntentResponse, unresolved supertypes: com.google.protobuf.GeneratedMessageV3 class com.google.cloud.dialogflow.v2beta1.DetectIntentResponseOrBuilder, unresolved supertypes: com.google.protobuf.MessageOrBuilder
Existe alguma solução para isso?