Tell me who knows how to create the Build App Bundle for Google Play
Tell me who knows how to create the Build App Bundle for Google Play Application works, I use Unity 2018.3.14f1 but when i put a tick on Build App Bundle (Google Play) in to Build Settings, an error occurs during the build of the application (Granlde build failed. See the Console for details.) and the build is interrupted.
3 errors appear in the console:
1 error
CommandInvokationFailure: Gradle build failed.
C:\Program Files\Unity\Hub\Editor\2018.3.14f1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\OpenJDK\Windows\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2018.3.14f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-4.6.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "bundleRelease"
stderr[
FAILURE: Build failed with an exception.
* Where:
Build file 'D:\�������\����������������\������\Unity\Living Virtuality\Temp\gradleOut\build.gradle' line: 24
* What went wrong:
A problem occurred evaluating root project 'gradleOut'.
> Failed to apply plugin [id 'com.android.application']
> Your project path contains non-ASCII characters. This will most likely cause the build to fail on Windows. Please move your project to a different directory. See http://b.android.com/95744 for details. This warning can be disabled by adding the line 'android.overridePathCheck=true' to gradle.properties file in the project directory.
* 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 14s
]
stdout[
]
exit code: 1
UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <3c0b2fdf8ace4ae49f054e74ca773557>:0)
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <3c0b2fdf8ace4ae49f054e74ca773557>:0)
UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <3c0b2fdf8ace4ae49f054e74ca773557>:0)
UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1[T] progress, System.String error) (at <3c0b2fdf8ace4ae49f054e74ca773557>:0)
UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at <3c0b2fdf8ace4ae49f054e74ca773557>: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 <3c0b2fdf8ace4ae49f054e74ca773557>:0)
UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <3c0b2fdf8ace4ae49f054e74ca773557>:0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <3c0b2fdf8ace4ae49f054e74ca773557>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
2 error
Build completed with a result of 'Failed'
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
3 error
UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x00234] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:191
at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x0007f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:97
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Answer by jipsen · Jun 13, 2019 at 01:15 PM
I had this happen a few times. It worked after I closed and opened the project again.
Answer by Googliee · Jul 04, 2019 at 07:04 AM
I Solved this just select Minify release Gradle in player setting 1. go to player setting 2. scroll down 3. see publishing setting 4. see Minify 5. select release (Gradle) and Debug (Gradle) 6. Every things will be fine
Your answer
![](https://koobas.hobune.stream/wayback/20220612201347im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
build failed,build webgl failed 0 Answers
Android app not compliant with google play 64 bit requirements despite following the instructions 1 Answer
Build error Execution failed for task ':packageReleaseBundle'. 0 Answers
Hello, I need some help to fix this error 0 Answers
CommandInvokationFailure: Failed to re-package resources. 0 Answers