Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A gradle build error received after setting v2SigningEnabled to false.
CommandInvokationFailure: Gradle build failed.
/Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java -classpath "/Applications/Unity/PlaybackEngines/AndroidPlayer/Tools/gradle/lib/gradle-launcher-2.14.jar" org.gradle.launcher.GradleMain "assembleRelease"
stderr[
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/lauren/Documents/CrabKingVR/Temp/gradleOut/build.gradle' line: 42
* What went wrong:
A problem occurred evaluating root project 'gradleOut'.
> Could not find method v2SigningEnabled() for arguments [false] on SigningConfig_Decorated{name=release, storeFile=/Users/lauren/Documents/CrabKingVR/Temp/gradleOut/user.keystore, storePassword=crabkingvr, keyAlias=release, keyPassword=crabkingvr, storeType=/Users/lauren/Documents/CrabKingVR/Temp/gradleOut/user.keystore} of type com.android.build.gradle.internal.dsl.SigningConfig.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
]
stdout[
BUILD FAILED
Total time: 14.377 secs
]
exit code: 1
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.GradleWrapper.RunJava (System.String args, System.String workingdir, UnityEditor.Android.Progress progress)
Rethrow as GradleInvokationException: Gradle build failed
UnityEditor.Android.GradleWrapper.RunJava (System.String args, System.String workingdir, UnityEditor.Android.Progress progress)
UnityEditor.Android.GradleWrapper.Run (System.String workingdir, System.String task, UnityEditor.Android.Progress progress)
UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.