Gradle Build失败 - Unity

时间:2018-03-28 14:59:22

标签: c# android unity3d gradle

每当我尝试使用Unity构建apk时。我的gradle构建失败了。 我每次都会收到这三个错误。

CommandInvokationFailure: Gradle build failed. 

C:\ Program Files \ Java \ jdk1.8.0_151 \ bin \ java.exe -classpath“F:\ Unity \ Editor \ Data \ PlaybackEngines \ AndroidPlayer \ Tools \ gradle \ lib \ gradle-launcher-4.0.1 .jar“org.gradle.launcher.GradleMain”-Dorg.gradle.jvmargs = -Xmx2048m“”assembleRelease“

stderr的[

失败:构建因异常而失败。

  • 出了什么问题: 配置根项目'gradleOut'时出现问题。

      

    无法解析配置':classpath'的所有依赖项。   无法从C:\ Users \ Ashwin.gradle \ _caches \ modules-2 \ metadata-2.23 \ descriptors \ com.google.jimfs \ jimfs \ _1.1 \ 22da77b0d76ea8df17298218f3ec1f87 \ descriptor.bin

    加载模块元数据
  • 尝试: 使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获得更多日志输出。

在17年代建立失败 ] 标准输出[ 启动Gradle守护程序(后续构建会更快) ] 退出代码:1 UnityEditor.Android.Command.WaitForProgramToRun(UnityEditor.Utils.Program p,UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit,System.String errorMsg) UnityEditor.Android.Command.Run(System.Diagnostics.ProcessStartInfo psi,UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit,System.String errorMsg) UnityEditor.Android.AndroidJavaTools.RunJava(System.String args,System.String workingdir,System.Action 1 progress, System.String error) UnityEditor.Android.GradleWrapper.Run (System.String workingdir, System.String task, System.Action 1进度) Rethrow as GradleInvokationException:Gradle构建失败 UnityEditor.Android.GradleWrapper.Run(System.String workingdir,System.String任务,System.Action`1进度) UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute(UnityEditor.Android.PostProcessor.PostProcessorContext context) UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTask​​s(UnityEditor.Android.PostProcessor.PostProcessorContext context) UnityEngine.GUIUtility:ProcessEvent(Int32,IntPtr)

Build completed with a result of 'Failed'

UnityEngine.GUIUtility:ProcessEvent(Int32,IntPtr)

UnityEditor.BuildPlayerWindow+BuildMethodException: 3 errors

at UnityEditor.BuildPlayerWindow + DefaultBuildMethods.BuildPlayer(BuildPlayerOptions options)[0x0020e]在C:\ buildslave \ unity \ build \ Editor \ Mono \ BuildPlayerWindowBuildMethods.cs:181   在UnityEditor.BuildPlayerWindow.CallBuildMethods(布尔值askForBuildLocation,BuildOptions defaultBuildOptions)[0x00065]在C:\ buildslave \ unity \ build \ Editor \ Mono \ BuildPlayerWindowBuildMethods.cs:88 UnityEngine.GUIUtility:ProcessEvent(Int32,IntPtr)

0 个答案:

没有答案