我已经使用 Android SDK/NDK 安装了 Unity 2019.4。ADB 服务器无法启动并出现以下错误:
UnityEditor.Android.Command.RunWithShellExecute (System.String command, System.String args, System.String workingdir, System.String errorMsg) (at <303ae0e7a8d8441ab049e592bd1e2100>:0)
UnityEditor.Android.ADB.StartServer () (at <303ae0e7a8d8441ab049e592bd1e2100>:0)
UnityEditor.Android.ADB.Run (System.String[] command, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <303ae0e7a8d8441ab049e592bd1e2100>:0)
UnityEditor.Android.AndroidDeploymentTargetsExtension.GetKnownTargets (UnityEditor.DeploymentTargets.IDeploymentTargetsMainThreadContext context, UnityEditor.ProgressHandler progressHandler) (at <303ae0e7a8d8441ab049e592bd1e2100>:0)
UnityEditor.DeploymentTargets.DeploymentTargetManager.GetKnownTargets () (at <7d90b28560b644ce87b8263efcc36eed>:0)
UnityEditor.Android.AndroidBuildWindowExtension+<>c__DisplayClass31_0.<SpawnFetchTargetsThread>b__0 () (at <303ae0e7a8d8441ab049e592bd1e2100>:0)
System.Threading.ThreadHelper:ThreadStart()
Run Code Online (Sandbox Code Playgroud)
我尝试在终端中运行 adb 但它也无法启动。我已经绕过了windows防火墙。它有这样的输出:
* daemon not running; starting now at tcp:5037
could not read ok from ADB Server
* failed to start daemon
adb.exe: failed to check server version: cannot connect to daemon …Run Code Online (Sandbox Code Playgroud)