- Home /
What is this error in build adroid and build app bundle in unity 2019.1.5?
https://i.stack.imgur.com/Hlgxc.png https://i.stack.imgur.com/FBnvJ.png
I get some Error when build android in Unity2019.1.5
I have not problem with unity 5.3.4p3 but google play do not accept my games and it wants x64 so I change to unity 2019.1.5 and in gradle and clicked on build app bundle (google play ) but I have error
I attached errors this error is
gradle build failed see the console for details
https://i.stack.imgur.com/QjbyW.png
I had this error in unity 2019.1.5 too
please help me
I am 30 days in this errors and can not cross it thanks
I wrote errors in below:
CommandInvokationFailure: Gradle build failed. C:/Program Files/Java/jdk1.8.0_192\bin\java.exe -classpath "F:\files\pc\Video\artoon\program files\UnitySetup64-2019.1.5\Unity\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.
-
Could not resolve all artifacts for configuration ':classpath'. Could not resolve com.android.tools.build:gradle:2.3.0.
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 32s ] stdout[ Starting a Gradle Daemon (subsequent builds will be faster) ] exit code: 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 progress) Rethrow as GradleInvokationException: Gradle build failed UnityEditor.Android.GradleWrapper.Run (System.String workingdir, System.String task, System.Action`1 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)
Build completed with a result of 'Failed' UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x0020e] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:181 at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00065] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:88 UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Answer by Googliee · Jul 04, 2019 at 07:08 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
I did it but I have Gradle Error yet,what do I do?I think it be for 2 file that It could not download "https://jcenter.bintray.com/com/android/tools/build/gradle/2.3.0/gradle-2.3.0.pom'. > Could not HEAD 'https://jcenter.bintray.com/com/android/tools/build/gradle/2.3.0/gradle-2.3.0.pom'. > jcenter.bintray.com" if I dowload it so where I copy them?