Unity Android - 反序列化 JSON 凭证数据时出错 - Google STT API

问题描述

在设置我知道 100% 正确的凭据后,我将问题归结为 SpeechClientBuilder 类的函数 .Build(),因为我检查过并且它们在编辑器上运行代码时有效。

解决方法

转到 Edit > Project Settings > Player > Other Settings > Api Comppatibility Level 并将其设置为 .Net 4.x。这解决了这个问题