我将 Google Mobile Ads 插件添加到我的 Unity 项目中,现在它每隔几秒钟就会抛出一次此错误。Android 依赖项已成功解决。我找不到解决方案。此外,我在 AdMob 集成之前添加了 Google Play 游戏服务。
因此,我无法构建我的游戏。构建完成,但文件尚未准备好。我正在运行 Unity 2018.1Of2 。
我确实更改了 PListProcessor 的代码 (Assets\GoogleMobileAds\Editor\PListProcessor.cs)。当我在 Windows 机器上构建 android 游戏时,它引发了关于使用 Unity.iOS.XCode 的错误。我删除了该行并删除了错误。
Win32Exception: The system cannot find the file specified.
System.Diagnostics.Process.Start_shell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process)
System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process)
System.Diagnostics.Process.Start ()
(wrapper remoting-invoke-with-check) System.Diagnostics.Process:Start ()
UnityEditor.Android.ADB.StartServer (UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit)
UnityEditor.Android.ADB.Run (System.String[] command, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidDeploymentTargetsExtension.GetKnownTargets (UnityEditor.ProgressHandler progressHandler)
UnityEditor.DeploymentTargets.DeploymentTargetManager.GetKnownTargets (BuildTargetGroup targetGroup, BuildTarget buildTarget) (at C:/buildslave/unity/build/Editor/Mono/DeploymentTargets/DeploymentTargetManager.cs:58)
UnityEditor.Android.AndroidBuildWindowExtension+<SpawnFetchTargetsThread>c__AnonStorey0.<>m__0 ()
UnityEditor.Android.<SpawnFetchTargetsThread>c__AnonStorey0:<>m__0()
您的帮助将不胜感激。我的项目已完成,我无法构建它。