有人可以帮助解决这些问题
错误列表:
- UnityException:构建失败!
无法找到Android SDK。
UnityEditor.Android.PostProcessor.CancelPostProcess.AbortBuild(System.String title,System.String message,UnityEditor.Android.CommandInvokationFailure ex)
UnityEditor.Android.PostProcessor.Tasks.CheckAndroidSdk.Execute(UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks(UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEditor.Android.PostProcessAndroidPlayer.PrepareForBuild(BuildOptions选项,BuildTarget目标)
UnityEditor.Android.AndroidBuildPostprocessor.PrepareForBuild(BuildOptions选项,BuildTarget目标)
UnityEditor.PostprocessBuildPlayer.PrepareForBuild(BuildOptions选项,BuildTargetGroup targetGroup,BuildTarget目标)(在C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:97)
UnityEditor.HostView:OnGUI()
- CommandInvokationFailure:无法列出目标平台。请确保android sdk路径正确。有关详细信息,请参阅控制台。
C:/ Program Files / Java / jdk1.8.0_131 \ bin \ java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir =“C:/ Users / karik / AppData / Local / Android / sdk \ tools”-Dfile。 encoding = UTF8 -jar“D:\ 1.Programy \ 5.Unity \ Editor \ Data \ PlaybackEngines \ AndroidPlayer / Tools \ sdktools.jar” -
醇>
stderr的[
错误:无效的命令android
]
标准输出[
]
退出代码:64
UnityEditor.Android.Command.Run(System.Diagnostics.ProcessStartInfo psi,UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit,System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommandInternal(System.String javaExe,System.String sdkToolsDir,System.String [] sdkToolCommand,Int32 memoryMB,System.String workingdir,UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit,System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommandSafe(System.String javaExe,System.String sdkToolsDir,System.String [] sdkToolCommand,Int32 memoryMB,System.String workingdir,UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit,System.String errorMsg)
UnityEditor.HostView:OnGUI()
- 构建Player时出错:CommandInvokationFailure:无法列出目标平台。请确保android sdk路径正确。有关详细信息,请参阅控制台。
C:/ Program Files / Java / jdk1.8.0_131 \ bin \ java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir =“C:/ Users / karik / AppData / Local / Android / sdk \ tools”-Dfile。 encoding = UTF8 -jar“D:\ 1.Programy \ 5.Unity \ Editor \ Data \ PlaybackEngines \ AndroidPlayer / Tools \ sdktools.jar” -
醇>
stderr的[
错误:无效的命令android
]
标准输出[
]
退出代码:64
SDK路径:C:\ Users \ karik \ AppData \ Local \ Android \ sdk
JDK路径:C:\ Program Files \ Java \ jdk1.8.0_131