【问题标题】:Unity InvalidOperationException: StandardIn has not been redirectedUnity InvalidOperationException:StandardIn 尚未被重定向
【发布时间】:2019-07-01 19:00:00
【问题描述】:

编辑器打开后,我的统一项目中出现以下异常。

InvalidOperationException: StandardIn has not been redirected.
System.Diagnostics.Process.get_StandardInput () (at <3845a180c26b4889bc2d47593a665814>:0)
(wrapper remoting-invoke-with-check) System.Diagnostics.Process.get_StandardInput()
GooglePlayServices.CommandLine.RunViaShell (System.String toolPath, System.String arguments, System.String workingDirectory, System.Collections.Generic.Dictionary`2[TKey,TValue] envVars, GooglePlayServices.CommandLine+IOHandler ioHandler, System.Boolean useShellExecution, System.Boolean stdoutRedirectionInShellMode) (at /Users/smiles/dev/src/unity-jar-resolver/source/PlayServicesResolver/src/CommandLine.cs:604)
GooglePlayServices.CommandLine.Run (System.String toolPath, System.String arguments, System.String workingDirectory, System.Collections.Generic.Dictionary`2[TKey,TValue] envVars, GooglePlayServices.CommandLine+IOHandler ioHandler) (at /Users/smiles/dev/src/unity-jar-resolver/source/PlayServicesResolver/src/CommandLine.cs:510)
GooglePlayServices.CommandLine+<RunAsync>c__AnonStorey1.<>m__0 () (at /Users/smiles/dev/src/unity-jar-resolver/source/PlayServicesResolver/src/CommandLine.cs:134)
System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) (at <d7ac571ca2d04b2f981d0d886fa067cf>:0)
System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) (at <d7ac571ca2d04b2f981d0d886fa067cf>:0)
System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) (at <d7ac571ca2d04b2f981d0d886fa067cf>:0)
System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) (at <d7ac571ca2d04b2f981d0d886fa067cf>:0)
System.Threading.ThreadHelper.ThreadStart () (at <d7ac571ca2d04b2f981d0d886fa067cf>:0)
UnityEngine.UnhandledExceptionHandler:<RegisterUECatcher>m__0(Object, UnhandledExceptionEventArgs)

这个异常是在一系列事件之后开始发生的。我试图实现的最初目标是使用 Firebase Cloud Messaging (FCM) 启用推送通知。安装 FirebaseMessaging 统一包后,我无法为我的 Android 构建解析 cretin jar 文件。在做了一些研究之后,我发现了一个统一的 GitHub 页面,它引导我安装 play-services-resolver-1.2.121.0 统一包。这修复了 jar 的解析,但后来我在构建时遇到了 dex 问题。长话短说,我最终退出了所有更改,并且开始出现上述异常。

我尝试从 Unity Cloud Code 获取我的项目的新版本,但没有帮助。我从 2018.3.X 升级到 Unity 2018.4.X 也没有帮助。解析和强制解析 Android 依赖项也没有做任何事情。

我无法在 Unity 编辑器中构建或运行我的游戏。在启动时,unity 会尝试解决 Android 依赖项,但从未取得任何进展。一个控制台窗口弹出,但似乎没有做任何事情。去年我在比赛中投入了 2000 多个小时,现在我不想失去它。如果有人有任何可能有帮助的线索,我将不胜感激。

谢谢你, 特拉维斯

【问题讨论】:

标签: unity3d


【解决方案1】:

我找到了解决方案。在互联网上挖掘了更多内容后,我被引导到一个完全用俄语的页面,在我使用谷歌翻译后,有人建议从统一文件夹名称中删除所有标点符号。低,这就是解决方案。我在其中一个文件夹的名称中有一个撇号。删除后,该项目再次运行。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-02-08
    • 2014-07-08
    • 1970-01-01
    • 1970-01-01
    • 2022-12-18
    • 1970-01-01
    相关资源
    最近更新 更多