【问题标题】:Unity Remote 5 with Android problem : CommandInvokationFailure: Unity Remote requirements check failedUnity Remote 5 与 Android 问题:CommandInvokationFailure: Unity Remote 要求检查失败
【发布时间】:2021-06-04 23:38:44
【问题描述】:

我正在尝试使用统一遥控器 5。这是我所做的:

  1. 在 File\Build Settings 中选择了 Android
  2. 在 Edit\Project Settings\Editor 中,Device 设置为“Any Android Device”
  3. 在 Edit\Preferences\External 工具中,Android 部分中的所有内容均已勾选
  4. 我已使用“Android SDK 和 NDK 工具”+“OpenJDK”安装了“Android 构建支持”模块
  5. 在 android studio 中,在 Configure\SDK manager\SDK Tools 中,“Google USB 驱动程序”已安装好
  6. 在我的手机上,我已经解锁了开发者选项并启用了 USB 调试
  7. 当然,我已经在手机上下载了 Unity Remote 5 并使用 USB 数据线将其连接到我的电脑

但是现在当我在 Unity 中按下播放时,我收到一条错误消息:

CommandInvokationFailure: Unity Remote requirements check failed
C:\Program Files\Unity\Hub\Editor\2020.2.4f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\adb.exe forward tcp:7201 tcp:7201

stderr[
error: device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.
]
stdout[

]
exit code: 1
UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <a5c628e5460b4ef8b30249ded44d2921>:0)
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <a5c628e5460b4ef8b30249ded44d2921>:0)
UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <a5c628e5460b4ef8b30249ded44d2921>:0)
UnityEditor.Android.ADB.RunInternal (System.String[] command, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <a5c628e5460b4ef8b30249ded44d2921>:0)
UnityEditor.Android.ADB.Run (System.String[] command, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <a5c628e5460b4ef8b30249ded44d2921>:0)
UnityEditor.Android.ADB.Run (System.String[] command, System.String errorMsg) (at <a5c628e5460b4ef8b30249ded44d2921>:0)

有人有解决办法吗?

【问题讨论】:

    标签: android unity3d unity-remote


    【解决方案1】:

    Unity 引擎有时可能有点难以运行。

    一些建议:

    • 更换电缆(有时这是主要问题)。

    • Edit -> Preferences -> External tools 下,向下滚动并取消勾选并重新勾选方块(有时这也解决了我的问题)

    • 如果您安装了多个版本的 unity - 如果您能够 - 将它们全部删除,甚至从您的程序文件 (C:/Programfiles/unity/hub/editor) 中删除,然后重新安装 Unity。我以前必须用我的一台设备来执行此操作,因为我安装了太多版本,所以我很困惑要加载哪些工具。

    • 如果您使用的是三星,请安装三星驱动程序。

    只要知道你并不孤单。 Unity 遥控器让它工作起来非常古怪。有时今天有效,但明天就无效了。

    【讨论】:

    • 非常感谢您的回答。我已经尝试了你建议的一切,但不幸的是它没有用,这真的让我很生气,因为我真的不知道错误来自哪里。无论如何我会继续寻找。再次感谢
    【解决方案2】:

    试试看:

    「Build Settings」 -> 「Player Settings」 -> 「Editor」 -> 「Device」 -> 「None」

    完成。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-09-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多