【发布时间】:2017-10-02 05:48:57
【问题描述】:
我的项目运行良好,但是当我制作 APK 文件时,出现了错误。
类型或命名空间名称Windows' does not exist in the namespaceUnityEngine'。您是否缺少程序集参考?
找不到类型或命名空间名称“ConfidenceLevel”。您是否缺少程序集参考?
找不到类型或命名空间名称“PhraseRecognizer”。您是否缺少程序集参考?
找不到类型或命名空间名称“PhraseRecognizedEventArgs”。您是否缺少程序集参考?
使用 UnityEngine.Windows.Speech;
我找到了解决方案:
http://answers.unity3d.com/questions/42719/how-should-i-add-references-to-additional-mono-ass.html.
资产 --> ReimportAll。
我添加了#if UNITY_EDITOR,错误消失了,但在android上不起作用:https://docs.unity3d.com/Manual/PlatformDependentCompilation.html
但它不起作用。
可以帮助我吗?谢谢大家!
【问题讨论】:
标签: c# android unity3d namespaces mono