Hello guys,
I keep on getting this error and i dont know what to do anymore.
Already did most things that are recommended to do and still cant fix it.
CommandInvokationFailure: Gradle build failed.
C:/Program Files/Java/jdk1.8.0_241\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2019.2.10f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-5.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"
stderr[
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\Creative\Desktop\ARvertising\Temp\gradleOut\build.gradle' line: 58
* What went wrong:
Could not compile build file 'C:\Users\Creative\Desktop\ARvertising\Temp\gradleOut\build.gradle'.
> startup failed:
build file 'C:\Users\Creative\Desktop\ARvertising\Temp\gradleOut\build.gradle': 58: expecting ']', found 's' @ line 58, column 106.
vertising (imac-de-imac.local's conflict
^
1 error
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 0s
]
stdout[
]
exit code: 1
UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <24d9b022aa584914af833273ea899103>:0)
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <24d9b022aa584914af833273ea899103>:0)
UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <24d9b022aa584914af833273ea899103>:0)
UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1[T] progress, System.String error) (at <24d9b022aa584914af833273ea899103>:0)
UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at <24d9b022aa584914af833273ea899103>:0)
Rethrow as GradleInvokationException: Gradle build failed
UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at <24d9b022aa584914af833273ea899103>:0)
UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <24d9b022aa584914af833273ea899103>:0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <24d9b022aa584914af833273ea899103>:0)
Rethrow as BuildFailedException: Exception of type 'UnityEditor.Build.BuildFailedException' was thrown.
UnityEditor.Android.PostProcessor.CancelPostProcess.AbortBuild (System.String title, System.String message, System.Exception ex) (at <24d9b022aa584914af833273ea899103>:0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <24d9b022aa584914af833273ea899103>:0)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <24d9b022aa584914af833273ea899103>:0)
UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <24d9b022aa584914af833273ea899103>:0)
UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:281)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)
JuliusM
January 21, 2020, 10:52am
2
gillespleite_unity:
Hello guys,
I keep on getting this error and i dont know what to do anymore.
Already did most things that are recommended to do and still cant fix it.
CommandInvokationFailure: Gradle build failed.
C:/Program Files/Java/jdk1.8.0_241\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2019.2.10f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-5.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"
stderr[
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\Creative\Desktop\ARvertising\Temp\gradleOut\build.gradle' line: 58
* What went wrong:
Could not compile build file 'C:\Users\Creative\Desktop\ARvertising\Temp\gradleOut\build.gradle'.
> startup failed:
build file 'C:\Users\Creative\Desktop\ARvertising\Temp\gradleOut\build.gradle': 58: expecting ']', found 's' @ line 58, column 106.
vertising (imac-de-imac.local's conflict
^
1 error
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 0s
]
stdout[
]
exit code: 1
UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <24d9b022aa584914af833273ea899103>:0)
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <24d9b022aa584914af833273ea899103>:0)
UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <24d9b022aa584914af833273ea899103>:0)
UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1[T] progress, System.String error) (at <24d9b022aa584914af833273ea899103>:0)
UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at <24d9b022aa584914af833273ea899103>:0)
Rethrow as GradleInvokationException: Gradle build failed
UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at <24d9b022aa584914af833273ea899103>:0)
UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <24d9b022aa584914af833273ea899103>:0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <24d9b022aa584914af833273ea899103>:0)
Rethrow as BuildFailedException: Exception of type 'UnityEditor.Build.BuildFailedException' was thrown.
UnityEditor.Android.PostProcessor.CancelPostProcess.AbortBuild (System.String title, System.String message, System.Exception ex) (at <24d9b022aa584914af833273ea899103>:0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <24d9b022aa584914af833273ea899103>:0)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <24d9b022aa584914af833273ea899103>:0)
UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <24d9b022aa584914af833273ea899103>:0)
UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:281)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)
This is the error
build file 'C:\Users\Creative\Desktop\ARvertising\Temp\gradleOut\build.gradle': 58: expecting ']', found 's' @ line 58, column 106.
vertising (imac-de-imac.local's conflict
^
Do you have a custom build.gradle file? If you do, inspect it and see what could be wrong at the outlined location. If you don’t have a custom build.gradle file, then after trying to make a build, keep Unity editor open and inspect the ‘C:\Users\Creative\Desktop\ARvertising\Temp\gradleOut\build.gradle’ file. Look at line 58 and around it to try and figure out what is wrong.The error says "expecting ‘]’, found ‘s’ " but it’s not exactly clear what’s wrong just from the error message.
JuliusM:
This is the error
build file 'C:\Users\Creative\Desktop\ARvertising\Temp\gradleOut\build.gradle': 58: expecting ']', found 's' @ line 58, column 106.
vertising (imac-de-imac.local's conflict
^
Do you have a custom build.gradle file? If you do, inspect it and see what could be wrong at the outlined location. If you don’t have a custom build.gradle file, then after trying to make a build, keep Unity editor open and inspect the ‘C:\Users\Creative\Desktop\ARvertising\Temp\gradleOut\build.gradle’ file. Look at line 58 and around it to try and figure out what is wrong.The error says "expecting ‘]’, found ‘s’ " but it’s not exactly clear what’s wrong just from the error message.
Hey Julius, thanks for the reply,
This is the problem aparently but i dont know what is wrong.
aaptOptions {
noCompress = ['.unity3d', '.ress', '.resource', '.obb', 'vuforia/arvertising (imac-de-imac.local's conflicted copy 2020-01-20).dat', 'vuforia/arvertising (imac-de-imac.local's conflicted copy 2020-01-20).xml', 'vuforia/arvertising.dat', 'vuforia/arvertising.xml']
ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~"
}
JuliusM
January 22, 2020, 12:17pm
4
gillespleite_unity:
Hey Julius, thanks for the reply,
This is the problem aparently but i dont know what is wrong.
aaptOptions {
noCompress = ['.unity3d', '.ress', '.resource', '.obb', 'vuforia/arvertising (imac-de-imac.local's conflicted copy 2020-01-20).dat', 'vuforia/arvertising (imac-de-imac.local's conflicted copy 2020-01-20).xml', 'vuforia/arvertising.dat', 'vuforia/arvertising.xml']
ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~"
}
Are you sure that “vuforia/arvertising (imac-de-imac.local’s conflicted copy 2020-01-20).dat” and “vuforia/arvertising (imac-de-imac.local’s conflicted copy 2020-01-20).xml” files should be included in your build? Based on the name it seems like some copying failed and these files were created as backups or something like that. I am not sure, but maybe they can be removed from your project? If you will try that, make sure to create a backup somewhere. Alternatively if these files are needed and are used by your application, maybe they can be renamed? removing the apostrophe in “local’s” so it’s just “locals” should fix this issue.