watson-developer-cloud / unity-sdk

:video_game: Unity SDK to use the IBM Watson services.
Apache License 2.0
569 stars 206 forks source link

watson services work properly in unity editor but not when i compile for android #642

Closed dclaresr closed 4 years ago

dclaresr commented 4 years ago

Hello, I am making a virtual reality app and I am currently using the services "conversation", "speech to text" and "text to speech", in the unity editor it works perfectly for me but when I compile for android it does nothing, When I check the log in the ADB console what I have is this: log.txt There are several null exceptions, I tried directly with the examples that come in the SDK and I get the same results I would appreciate any help or advice with this,

mamoonraja commented 4 years ago

Hi @dclaresr , thanks a lot for opening the issue, can you put a debug log here: https://github.com/IBM/unity-sdk-core/blob/master/Utilities/CredentialUtils.cs#L216 or provide me how your env variables are setup? Looks like issue is happening in that method where we try to map credentials. Thanks!

dclaresr commented 4 years ago

I am using the examples that come in the SDK, with some modifications for the interactions between them

https://github.com/watson-developer-cloud/unity-sdk/blob/master/Examples/ExampleStreaming.cs https://github.com/watson-developer-cloud/unity-sdk/blob/master/Examples/ExampleAssistantV2.cs https://github.com/watson-developer-cloud/unity-sdk/blob/master/Examples/ExampleTextToSpeechV1.cs

log2.txt

mamoonraja commented 4 years ago

@dclaresr Thanks for providing the log, the issue seems like it's an issue with credentials provided. Do you have .env file setup or are you providing the API keys in Unity Widget?

dclaresr commented 4 years ago

in the unity Widget

mamoonraja commented 4 years ago

Try setting up the env file, it's possible that android is having issues with unity widget. I don't have an android device to test on, so I can not debug it :(

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has had no recent activity. It will be closed if no further activity occurs. Thank you for your contributions.