watson-developer-cloud / unity-sdk

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

[Unity-Android] Watson Assistantv2, ExampleStreaming, ExampleTextToSpeechV1 #688

Open lycronos opened 2 years ago

lycronos commented 2 years ago

Hi, I have a problem i create a project using Assistantv2, ExampleStreaming, ExampleTextToSpeechV1, it's work fine but when i build in android doesn't work and they show me this logs errors in the Phone:

Unity Exception NullReferenceException: Object reference not set to an instance of an object. : IBM.Cloud.SDK.Utilities.CredentialUtils.GetEnvCredentialsAsMap (System.String serviceName) (at <00000000000000000000000000000000>:0) IBM.Cloud.SDK.Utilities.CredentialUtils.GetServiceProperties (System.String serviceName) (at <00000000000000000000000000000000>:0) IBM.Cloud.SDK.BaseService..ctor (IBM.Cloud.SDK.Authentication.Authenticator authenticator, System.String serviceId) (at <00000000000000000000000000000000>:0) IBM.Watson.TextToSpeech.V1.TextToSpeechService..ctor (System.String serviceName, IBM.Cloud.SDK.Authentication.Authenticator authenticator) (at <00000000000000000000000000000000>:0) vozmaquina+d14.MoveNext () (at <00000000000000000000000000000000>:0) IBM.Cloud.SDK.Utilities.Runnable+Routine.MoveNext () (at <00000000000000000000000000000000>:0) UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr retu NullReferenceException: Object reference not set to an instance of an object. at IBM.Cloud.SDK.Utilities.CredentialUtils.GetEnvCredentialsAsMap (System.String serviceName) [0x00000] in <00000000000000000000000000000000>:0 at IBM.Cloud.SDK.Utilities.CredentialUtils.GetServiceProperties (System.String serviceName) [0x00000] in <00000000000000000000000000000000>:0 at IBM.Cloud.SDK.BaseService..ctor (IBM.Cloud.SDK.Authentication.Authenticator authenticator, System.String serviceId) [0x00000] in <00000000000000000000000000000000>:0 at IBM.Watson.TextToSpeech.V1.TextToSpeechService..ctor (System.String serviceName, IBM.Cloud.SDK.Authentication.Authenticator authenticator) [0x00000] in <00000000000000000000000000000000>:0 at vozmaquina+d14.MoveNext () [0x00000] in <00000000000000000000000000000000>:0 04-11 16:41:59.428: E/Unity(32102): at IBM.Cloud.SDK.Utilities.Runnable+Routine.MoveNext () [0x00000] in <00000000000000000000000000000000>:0 04-11 16:41:59.428: E/Unity(32102): at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerato 04-11 16:41:59.430: E/Unity(32102): [04/11/2022 20:41:59][Unity][CRITICAL] Unity Exception NullReferenceException: Object reference not set to an instance of an object. : IBM.Cloud.SDK.Utilities.CredentialUtils.GetEnvCredentialsAsMap (System.String serviceName) (at <00000000000000000000000000000000>:0) 04-11 16:41:59.430: E/Unity(32102): IBM.Cloud.SDK.Utilities.CredentialUtils.GetServiceProperties (System.String serviceName) (at <00000000000000000000000000000000>:0) 04-11 16:41:59.430: E/Unity(32102): IBM.Cloud.SDK.BaseService..ctor (IBM.Cloud.SDK.Authentication.Authenticator authenticator, System.String serviceId) (at <00000000000000000000000000000000>:0) 04-11 16:41:59.430: E/Unity(32102): IBM.Watson.Assistant.V2.AssistantService..ctor (System.String version, System.String serviceName, IBM.Cloud.SDK.Authentication.Authenticator authenticator) (at <00000000000000000000000000000000>:0) 04-11 16:41:59.430: E/Unity(32102): IAasistente+d17.MoveNext () (at <00000000000000000000000000000000>:0) 04-11 16:41:59.430: E/Unity(32102): IBM.Cloud.SDK.Utilities.Runnable+Routine.MoveNext () (at <00000000000000000000000000000000>:0) 04-11 16:41:59.430: E/Unity(32102): UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, 04-11 16:41:59.431: E/Unity(32102): NullReferenceException: Object reference not set to an instance of an object. 04-11 16:41:59.431: E/Unity(32102): at IBM.Cloud.SDK.Utilities.CredentialUtils.GetEnvCredentialsAsMap (System.String serviceName) [0x00000] in <00000000000000000000000000000000>:0 04-11 16:41:59.431: E/Unity(32102): at IBM.Cloud.SDK.Utilities.CredentialUtils.GetServiceProperties (System.String serviceName) [0x00000] in <00000000000000000000000000000000>:0 04-11 16:41:59.431: E/Unity(32102): at IBM.Cloud.SDK.BaseService..ctor (IBM.Cloud.SDK.Authentication.Authenticator authenticator, System.String serviceId) [0x00000] in <00000000000000000000000000000000>:0 04-11 16:41:59.431: E/Unity(32102): at IBM.Watson.Assistant.V2.AssistantService..ctor (System.String version, System.String serviceName, IBM.Cloud.SDK.Authentication.Authenticator authenticator) [0x00000] in <00000000000000000000000000000000>:0 04-11 16:41:59.431: E/Unity(32102): at IAasistente+d17.MoveNext () [0x00000] in <00000000000000000000000000000000>:0 04-11 16:41:59.431: E/Unity(32102): at IBM.Cloud.SDK.Utilities.Runnable+Routine.MoveNext () [0x00000] in <00000000000000000000000000000000>:0 04-11 16:41:59.431: E/Unity(32102): at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Coll 04-11 16:41:59.433: E/Unity(32102): [04/11/2022 20:41:59][Unity][CRITICAL] Unity Exception NullReferenceException: Object reference not set to an instance of an object. : IBM.Cloud.SDK.Utilities.CredentialUtils.GetEnvCredentialsAsMap (System.String serviceName) (at <00000000000000000000000000000000>:0) 04-11 16:41:59.433: E/Unity(32102): IBM.Cloud.SDK.Utilities.CredentialUtils.GetServiceProperties (System.String serviceName) (at <00000000000000000000000000000000>:0) 04-11 16:41:59.433: E/Unity(32102): IBM.Cloud.SDK.BaseService..ctor (IBM.Cloud.SDK.Authentication.Authenticator authenticator, System.String serviceId) (at <00000000000000000000000000000000>:0) 04-11 16:41:59.433: E/Unity(32102): IBM.Watson.SpeechToText.V1.SpeechToTextService..ctor (System.String serviceName, IBM.Cloud.SDK.Authentication.Authenticator authenticator) (at <00000000000000000000000000000000>:0) 04-11 16:41:59.433: E/Unity(32102): reconocervoz+d12.MoveNext () (at <00000000000000000000000000000000>:0) 04-11 16:41:59.433: E/Unity(32102): IBM.Cloud.SDK.Utilities.Runnable+Routine.MoveNext () (at <00000000000000000000000000000000>:0) 04-11 16:41:59.433: E/Unity(32102): UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr re 04-11 16:41:59.433: E/Unity(32102): NullReferenceException: Object reference not set to an instance of an object. 04-11 16:41:59.433: E/Unity(32102): at IBM.Cloud.SDK.Utilities.CredentialUtils.GetEnvCredentialsAsMap (System.String serviceName) [0x00000] in <00000000000000000000000000000000>:0 04-11 16:41:59.433: E/Unity(32102): at IBM.Cloud.SDK.Utilities.CredentialUtils.GetServiceProperties (System.String serviceName) [0x00000] in <00000000000000000000000000000000>:0 04-11 16:41:59.433: E/Unity(32102): at IBM.Cloud.SDK.BaseService..ctor (IBM.Cloud.SDK.Authentication.Authenticator authenticator, System.String serviceId) [0x00000] in <00000000000000000000000000000000>:0 04-11 16:41:59.433: E/Unity(32102): at IBM.Watson.SpeechToText.V1.SpeechToTextService..ctor (System.String serviceName, IBM.Cloud.SDK.Authentication.Authenticator authenticator) [0x00000] in <00000000000000000000000000000000>:0 04-11 16:41:59.433: E/Unity(32102): at reconocervoz+d12.MoveNext () [0x00000] in <00000000000000000000000000000000>:0 04-11 16:41:59.433: E/Unity(32102): at IBM.Cloud.SDK.Utilities.Runnable+Routine.MoveNext () [0x00000] in <00000000000000000000000000000000>:0 04-11 16:41:59.433: E/Unity(32102): at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumera

lycronos commented 2 years ago

i actualy use unity-sdk-6.0.0, unity-sdk-core-1.2.4 and unity 2020.3.16f