dialogflow-android-client icon indicating copy to clipboard operation
dialogflow-android-client copied to clipboard

AIRequest and AIResponse files are missing in the SDK

Open bhuva13 opened this issue 8 years ago • 1 comments

I'm trying to send the text(Voice text) using following code in in the SDK .

final AIConfiguration config = new AIConfiguration(ACCESS_TOKEN, AIConfiguration.SupportedLanguages.English, AIConfiguration.RecognitionEngine.System);

final AIDataService aiDataService = new AIDataService(config); final AIRequest aiRequest = new AIRequest(); aiRequest.setQuery("Hello");

But AIRequest,AIResponse files are not available in the "ai.api:sdk:2.0.7@aar" . I think ai.api.model.AIRequest; and ai.api.model.AIResponse packages are missing in the SDK. So Please help me to write the AIRequest to perform network operation.

And, I'm getting 'Cannot resolve symbol 'SupportedLanguage' error in compile time.

bhuva13 avatar Aug 31 '17 18:08 bhuva13

That is because they are the part ai.api:libai:1.6.12, add that dependency also, this will clear the problem.

asvskartheek avatar Sep 01 '17 23:09 asvskartheek