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

package.ai.api.model does not exist

Open digracesion opened this issue 6 years ago • 7 comments

packages from ai.api seems to have been deprecated as api.ai has been changed to dialogflow v2. how do I fix this problem?

digracesion avatar May 28 '18 02:05 digracesion

Do you have any sample code? So far the packages I have been using seem to be working fine.

HarisSpahija avatar Jun 14 '18 16:06 HarisSpahija

i just made a pull request of this project and imported the project to create a new one, but the bot doesn't respond at all. pretty sure the credentials are working fine since i lent them to someone who tried to create an ios app

digracesion avatar Jul 03 '18 00:07 digracesion

Can the app build? If so, dont forget to check your permissions in android itself.

HarisSpahija avatar Jul 03 '18 08:07 HarisSpahija

i've checked the permissions. however, the app fails to build.

digracesion avatar Jul 04 '18 00:07 digracesion

Can you link your error message when you build? It might be that you havent installed the v2 model yet. You can do that with npm

HarisSpahija avatar Jul 04 '18 00:07 HarisSpahija

Getting the same error while trying to build the sample app.

All these imports are error-ed out:

import ai.api.AIServiceException;
import ai.api.RequestExtras;
import ai.api.model.AIContext;
import ai.api.model.AIError;
import ai.api.model.AIEvent;
import ai.api.model.AIRequest;
import ai.api.model.AIResponse;
import ai.api.model.Metadata;
import ai.api.model.Result;
import ai.api.model.Status;

The entire model package is missing, along with other files stated above.

imGurpreetSK avatar Aug 30 '18 11:08 imGurpreetSK

Solution: You can see https://github.com/dialogflow/dialogflow-android-client/blob/master/docs/integration.md This would work.

imGurpreetSK avatar Aug 30 '18 11:08 imGurpreetSK