dialogflow / dialogflow-android-client

Android SDK for Dialogflow
https://dialogflow.com
Apache License 2.0
574 stars 270 forks source link

package.ai.api.model does not exist #94

Open digracesion opened 6 years ago

digracesion commented 6 years ago

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

HarisSpahija commented 6 years ago

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

digracesion commented 6 years ago

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

HarisSpahija commented 6 years ago

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

digracesion commented 6 years ago

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

HarisSpahija commented 6 years ago

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

imGurpreetSK commented 6 years ago

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 commented 6 years ago

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