I'm trying to move to 2018.3 from 2018.2 and cannot get android batch mode build working (ios and webgl work fine). Here's the error I see in the log: Did anyone encounter this problem?
I just ran into this error when I switched from "Export Project" to a regular Android build, and the error went away after I did these two things: - Upgraded to the latest version of Android Studio (3.2.1) - Upgraded to Gradle 4.6 when it prompted me to I suspect that updating Gradle is what solved the issue. Now I'm able to build directly from Unity again.
@binarynate: Thanks for the response. My Android Studio and its plugins all claim to be up to date, but I'm still having the issue. @Yury-Habets: I'll keep checking in, thanks.
I got the same issue when I updated to unity 2018.3.2f1. fixed it by just updating Android sdk when it prompted me to
This issue is still there in Unity 2018.3.3f1 where you mentioned that you had fixed this in your release notes. https://forum.unity.com/threads/gradle-prewarm-failed-in-unity-2018-3-3f1.620206/
Me too facing the same issue.Iam having asset bundles in my project.Android SDK is already updated to latest.Unity Version is 2018.3.3f1
Do you get any additional errors? Previously the actual errors were not printed to the console, but after the fix the errors that caused prewarm to fail should be printed to the editor console.
The only errors that I got were this: Code (CSharp): CommandWithNoStdoutInvokationFailure: Gradle prewarm failed. UnityEditor.Android.Command.RunWithShellExecute (System.String command, System.String args, System.String workingdir, System.String errorMsg) (at <492d67763d4d482e8616a9848b18ccab>:0) UnityEditor.Android.AndroidJavaTools.RunJavaWithShellExecute (System.String args, System.String workingdir, System.String error) (at <492d67763d4d482e8616a9848b18ccab>:0) UnityEditor.Android.GradleWrapper.WarmupGradle (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String baseCommand) (at <492d67763d4d482e8616a9848b18ccab>:0) UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at <492d67763d4d482e8616a9848b18ccab>:0) UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <492d67763d4d482e8616a9848b18ccab>:0) UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <492d67763d4d482e8616a9848b18ccab>:0) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) I have explained this issue in this post: https://forum.unity.com/threads/gradle-prewarm-failed-in-unity-2018-3-3f1.620206/ Can you please check this. Because of this issue, our project is too late now.
Hi, currently there's still an issue with the prewarm error not giving any meaningful information. We've got a fix for that and it should be coming to 18.3 soon. This error is the result of a gradle build failure. You should still be able to get the actual error by either using 18.2 or by exporting as a gradle project and trying to build it with android studio. Fixing the underlying error should make the prewarm error disappear.
Just want to note that though using 18.2 is mentioned as workaround, my problem appeared just after I moved to 18.3 and with 18.2 everything works just fine.
Does the problem happen with batchmode builds only or does it affect regular android builds as well? Could you please send us a bug report with a project that can be used recreate the issue?
Had the same problem, turns out it was my mainTemplate.gradle (custom gradle file) which needed updating. It appears Unity does not automatically do this. Instead I had to follow this very simple guide: https://forum.unity.com/threads/uni...th-gradle-and-googleaidl.546478/#post-3917137
I can confirm that upgrading the Android SDK fixed the issue on 2018.3.3f1, either normal build or command line build
Hi, I've upgraded my project to 2018.3.4f1 and trying to build my game with IL2CPP for the first time, but keep getting the gradle prewarm error. I'm running the latest version of SDK and build tools and the OpenJDK and NDK r16b. There isn't much in the way of useful output that I can see - it doesn't mean much to me: Spoiler Code (csharp): Build completed with a result of 'Failed' 0x0000000141415828 (Unity) StackWalker::GetCurrentCallstack 0x000000014141BCD6 (Unity) StackWalker::ShowCallstack 0x00000001412FF55B (Unity) GetStacktrace 0x00000001401432FE (Unity) DebugStringToFile 0x0000000141786EED (Unity) DebugLogHandler_CUSTOM_Internal_Log 0x0000000054CC5760 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,string,UnityEngine.Object) 0x0000000054CC5633 (Mono JIT Code) [DebugLogHandler.cs:10] UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[]) 0x0000000054CC4EB5 (Mono JIT Code) [Logger.cs:48] UnityEngine.Logger:Log (UnityEngine.LogType,object) 0x0000000012512FE9 (Mono JIT Code) [Debug.bindings.cs:117] UnityEngine.Debug:LogError (object) 0x00000000484E8343 (Mono JIT Code) [BuildPlayerWindowBuildMethods.cs:190] UnityEditor.BuildPlayerWindow/DefaultBuildMethods:BuildPlayer (UnityEditor.BuildPlayerOptions) 0x000000001135F14B (Mono JIT Code) [BuildPlayerWindowBuildMethods.cs:97] UnityEditor.BuildPlayerWindow:CallBuildMethods (bool,UnityEditor.BuildOptions) 0x00000000111FB353 (Mono JIT Code) [BuildPlayerWindow.cs:908] UnityEditor.BuildPlayerWindow:GUIBuildButtons (UnityEditor.Modules.IBuildWindowExtension,bool,bool,bool,UnityEditor.Build.BuildPlatform) 0x00000000111AA28B (Mono JIT Code) [BuildPlayerWindow.cs:809] UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings () 0x0000000011189B5B (Mono JIT Code) [BuildPlayerWindow.cs:411] UnityEditor.BuildPlayerWindow:OnGUI () 0x00000000413170C0 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr) 0x00007FF8CBCCBE4B (mono-2.0-bdwgc) [mini-runtime.c:2809] mono_jit_runtime_invoke 0x00007FF8CBC51E32 (mono-2.0-bdwgc) [object.c:2919] do_runtime_invoke 0x00007FF8CBC5B012 (mono-2.0-bdwgc) [object.c:3071] mono_runtime_invoke_checked 0x00007FF8CBC5B7A9 (mono-2.0-bdwgc) [object.c:5262] mono_runtime_try_invoke_array 0x00007FF8CBC5AFA6 (mono-2.0-bdwgc) [object.c:5140] mono_runtime_invoke_array_checked 0x00007FF8CBBFFED4 (mono-2.0-bdwgc) [icall.c:3358] ves_icall_InternalInvoke 0x0000000043AEDBD6 (Mono JIT Code) (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&) 0x0000000043AEC1DB (Mono JIT Code) System.Reflection.MonoMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) 0x000000003FFC922F (Mono JIT Code) System.Reflection.MethodBase:Invoke (object,object[]) 0x0000000048047FB3 (Mono JIT Code) [HostView.cs:342] UnityEditor.HostView:Invoke (string,object) 0x0000000048047E13 (Mono JIT Code) [HostView.cs:337] UnityEditor.HostView:Invoke (string) 0x00000000111886D3 (Mono JIT Code) [HostView.cs:130] UnityEditor.HostView:OldOnGUI () 0x0000000048628B0C (Mono JIT Code) [IMGUIContainer.cs:244] UnityEngine.Experimental.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool) 0x0000000048626EBB (Mono JIT Code) [IMGUIContainer.cs:440] UnityEngine.Experimental.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect) 0x0000000011E76943 (Mono JIT Code) [IMGUIContainer.cs:421] UnityEngine.Experimental.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event) 0x000000004803E6FB (Mono JIT Code) [IMGUIContainer.cs:401] UnityEngine.Experimental.UIElements.IMGUIContainer:HandleEvent (UnityEngine.Experimental.UIElements.EventBase) 0x000000004801AC94 (Mono JIT Code) [EventDispatcher.cs:516] UnityEngine.Experimental.UIElements.EventDispatcher:ProcessEvent (UnityEngine.Experimental.UIElements.EventBase,UnityEngine.Experimental.UIElements.IPanel) 0x00000000480140EB (Mono JIT Code) [EventDispatcher.cs:308] UnityEngine.Experimental.UIElements.EventDispatcher:Dispatch (UnityEngine.Experimental.UIElements.EventBase,UnityEngine.Experimental.UIElements.IPanel,UnityEngine.Experimental.UIElements.DispatchMode) 0x0000000048013BB3 (Mono JIT Code) [Panel.cs:177] UnityEngine.Experimental.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.Experimental.UIElements.EventBase,UnityEngine.Experimental.UIElements.DispatchMode) 0x00000000485FA2C3 (Mono JIT Code) [UIElementsUtility.cs:248] UnityEngine.Experimental.UIElements.UIElementsUtility:DoDispatch (UnityEngine.Experimental.UIElements.BaseVisualElementPanel) 0x00000000485F9A2B (Mono JIT Code) [UIElementsUtility.cs:68] UnityEngine.Experimental.UIElements.UIElementsUtility:ProcessEvent (int,intptr) 0x00000000485F9394 (Mono JIT Code) [GUIUtility.cs:179] UnityEngine.GUIUtility:ProcessEvent (int,intptr) 0x00000000485F95B3 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_bool_int_intptr (object,intptr,intptr,intptr) 0x00007FF8CBCCBE4B (mono-2.0-bdwgc) [mini-runtime.c:2809] mono_jit_runtime_invoke 0x00007FF8CBC51E32 (mono-2.0-bdwgc) [object.c:2919] do_runtime_invoke 0x00007FF8CBC5AE3F (mono-2.0-bdwgc) [object.c:2966] mono_runtime_invoke 0x0000000140C02AAA (Unity) scripting_method_invoke 0x0000000140BF30BA (Unity) ScriptingInvocation::Invoke 0x0000000140BED11A (Unity) ScriptingInvocation::Invoke<bool> 0x000000014042E70C (Unity) Scripting::UnityEngine::GUIUtilityProxy::ProcessEvent 0x000000014129116C (Unity) GUIView::ProcessRetainedMode 0x000000014147A5E0 (Unity) GUIView::OnInputEvent 0x000000014129107C (Unity) GUIView::ProcessInputEvent 0x000000014147BC7C (Unity) GUIView::ProcessEventMessages 0x0000000141471B0F (Unity) GUIView::GUIViewWndProc 0x00007FF91F3D6D41 (USER32) CallWindowProcW 0x00007FF91F3D6713 (USER32) DispatchMessageW 0x000000014149836F (Unity) MainMessageLoop 0x0000000141499E66 (Unity) WinMain 0x000000014247DE8A (Unity) __scrt_common_main_seh 0x00007FF91DDE3034 (KERNEL32) BaseThreadInitThunk 0x00007FF920483691 (ntdll) RtlUserThreadStart (Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 45) UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x00234] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:190 at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x0007f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:96 0x0000000141415828 (Unity) StackWalker::GetCurrentCallstack 0x000000014141BCD6 (Unity) StackWalker::ShowCallstack 0x00000001412FF55B (Unity) GetStacktrace 0x00000001401432FE (Unity) DebugStringToFile 0x0000000141786EED (Unity) DebugLogHandler_CUSTOM_Internal_Log 0x0000000054CC5760 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,string,UnityEngine.Object) 0x0000000054CC5633 (Mono JIT Code) [DebugLogHandler.cs:10] UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[]) 0x0000000054CC4EB5 (Mono JIT Code) [Logger.cs:48] UnityEngine.Logger:Log (UnityEngine.LogType,object) 0x0000000012512FE9 (Mono JIT Code) [Debug.bindings.cs:117] UnityEngine.Debug:LogError (object) 0x000000001135F2CB (Mono JIT Code) [BuildPlayerWindowBuildMethods.cs:102] UnityEditor.BuildPlayerWindow:CallBuildMethods (bool,UnityEditor.BuildOptions) 0x00000000111FB353 (Mono JIT Code) [BuildPlayerWindow.cs:908] UnityEditor.BuildPlayerWindow:GUIBuildButtons (UnityEditor.Modules.IBuildWindowExtension,bool,bool,bool,UnityEditor.Build.BuildPlatform) 0x00000000111AA28B (Mono JIT Code) [BuildPlayerWindow.cs:809] UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings () 0x0000000011189B5B (Mono JIT Code) [BuildPlayerWindow.cs:411] UnityEditor.BuildPlayerWindow:OnGUI () 0x00000000413170C0 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr) 0x00007FF8CBCCBE4B (mono-2.0-bdwgc) [mini-runtime.c:2809] mono_jit_runtime_invoke 0x00007FF8CBC51E32 (mono-2.0-bdwgc) [object.c:2919] do_runtime_invoke 0x00007FF8CBC5B012 (mono-2.0-bdwgc) [object.c:3071] mono_runtime_invoke_checked 0x00007FF8CBC5B7A9 (mono-2.0-bdwgc) [object.c:5262] mono_runtime_try_invoke_array 0x00007FF8CBC5AFA6 (mono-2.0-bdwgc) [object.c:5140] mono_runtime_invoke_array_checked 0x00007FF8CBBFFED4 (mono-2.0-bdwgc) [icall.c:3358] ves_icall_InternalInvoke 0x0000000043AEDBD6 (Mono JIT Code) (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&) 0x0000000043AEC1DB (Mono JIT Code) System.Reflection.MonoMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) 0x000000003FFC922F (Mono JIT Code) System.Reflection.MethodBase:Invoke (object,object[]) 0x0000000048047FB3 (Mono JIT Code) [HostView.cs:342] UnityEditor.HostView:Invoke (string,object) 0x0000000048047E13 (Mono JIT Code) [HostView.cs:337] UnityEditor.HostView:Invoke (string) 0x00000000111886D3 (Mono JIT Code) [HostView.cs:130] UnityEditor.HostView:OldOnGUI () 0x0000000048628B0C (Mono JIT Code) [IMGUIContainer.cs:244] UnityEngine.Experimental.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool) 0x0000000048626EBB (Mono JIT Code) [IMGUIContainer.cs:440] UnityEngine.Experimental.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect) 0x0000000011E76943 (Mono JIT Code) [IMGUIContainer.cs:421] UnityEngine.Experimental.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event) 0x000000004803E6FB (Mono JIT Code) [IMGUIContainer.cs:401] UnityEngine.Experimental.UIElements.IMGUIContainer:HandleEvent (UnityEngine.Experimental.UIElements.EventBase) 0x000000004801AC94 (Mono JIT Code) [EventDispatcher.cs:516] UnityEngine.Experimental.UIElements.EventDispatcher:ProcessEvent (UnityEngine.Experimental.UIElements.EventBase,UnityEngine.Experimental.UIElements.IPanel) 0x00000000480140EB (Mono JIT Code) [EventDispatcher.cs:308] UnityEngine.Experimental.UIElements.EventDispatcher:Dispatch (UnityEngine.Experimental.UIElements.EventBase,UnityEngine.Experimental.UIElements.IPanel,UnityEngine.Experimental.UIElements.DispatchMode) 0x0000000048013BB3 (Mono JIT Code) [Panel.cs:177] UnityEngine.Experimental.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.Experimental.UIElements.EventBase,UnityEngine.Experimental.UIElements.DispatchMode) 0x00000000485FA2C3 (Mono JIT Code) [UIElementsUtility.cs:248] UnityEngine.Experimental.UIElements.UIElementsUtility:DoDispatch (UnityEngine.Experimental.UIElements.BaseVisualElementPanel) 0x00000000485F9A2B (Mono JIT Code) [UIElementsUtility.cs:68] UnityEngine.Experimental.UIElements.UIElementsUtility:ProcessEvent (int,intptr) 0x00000000485F9394 (Mono JIT Code) [GUIUtility.cs:179] UnityEngine.GUIUtility:ProcessEvent (int,intptr) 0x00000000485F95B3 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_bool_int_intptr (object,intptr,intptr,intptr) 0x00007FF8CBCCBE4B (mono-2.0-bdwgc) [mini-runtime.c:2809] mono_jit_runtime_invoke 0x00007FF8CBC51E32 (mono-2.0-bdwgc) [object.c:2919] do_runtime_invoke 0x00007FF8CBC5AE3F (mono-2.0-bdwgc) [object.c:2966] mono_runtime_invoke 0x0000000140C02AAA (Unity) scripting_method_invoke 0x0000000140BF30BA (Unity) ScriptingInvocation::Invoke 0x0000000140BED11A (Unity) ScriptingInvocation::Invoke<bool> 0x000000014042E70C (Unity) Scripting::UnityEngine::GUIUtilityProxy::ProcessEvent 0x000000014129116C (Unity) GUIView::ProcessRetainedMode 0x000000014147A5E0 (Unity) GUIView::OnInputEvent 0x000000014129107C (Unity) GUIView::ProcessInputEvent 0x000000014147BC7C (Unity) GUIView::ProcessEventMessages 0x0000000141471B0F (Unity) GUIView::GUIViewWndProc 0x00007FF91F3D6D41 (USER32) CallWindowProcW 0x00007FF91F3D6713 (USER32) DispatchMessageW 0x000000014149836F (Unity) MainMessageLoop 0x0000000141499E66 (Unity) WinMain 0x000000014247DE8A (Unity) __scrt_common_main_seh 0x00007FF91DDE3034 (KERNEL32) BaseThreadInitThunk 0x00007FF920483691 (ntdll) RtlUserThreadStart (Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 45) I'm using the built in gradle file and a custom proguard as follows: Spoiler Code (csharp): # For communication with AdColony's WebView -keepclassmembers class * { @android.webkit.JavascriptInterface <methods>; } # Keep ADCNative class members unobfuscated -keepclassmembers class com.adcolony.sdk.ADCNative** { *; } -keepattributes SourceFile,LineNumberTable -keep class com.inmobi.** { *; } -dontwarn com.inmobi.** -keep public class com.google.android.gms.** -dontwarn com.google.android.gms.** -dontwarn com.squareup.picasso.** -keep class com.google.android.gms.ads.identifier.AdvertisingIdClient{ public *; } -keep class com.google.android.gms.ads.identifier.AdvertisingIdClient$Info{ public *; } # skip the Picasso library classes -keep class com.squareup.picasso.** {*;} -dontwarn com.squareup.picasso.** -dontwarn com.squareup.okhttp.** # skip Moat classes -keep class com.moat.** {*;} -dontwarn com.moat.** # skip AVID classes -keep class com.integralads.avid.library.* {*;} #Unity # Keep filenames and line numbers for stack traces -keepattributes SourceFile,LineNumberTable # Keep JavascriptInterface for WebView bridge -keepattributes JavascriptInterface # Sometimes keepattributes is not enough to keep annotations -keep class android.webkit.JavascriptInterface { *; } # Keep all classes in Unity Ads package -keep class com.unity3d.ads.** { *; } # Keep all classes in Unity Services package -keep class com.unity3d.services.** { *; } -dontwarn com.google.ar.core.** -dontwarn com.unity3d.services.** -dontwarn com.ironsource.adapters.unityads.** # Vungle -keep class com.vungle.warren.** { *; } -dontwarn com.vungle.warren.error.VungleError$ErrorCode # Moat SDK -keep class com.moat.** { *; } -dontwarn com.moat.** # Okio -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement # Retrofit -dontwarn okio.** -dontwarn retrofit2.Platform$Java8 # Gson -keepattributes Signature -keepattributes *Annotation* -dontwarn sun.misc.** -keep class com.google.gson.examples.android.model.** { *; } -keep class * implements com.google.gson.TypeAdapterFactory -keep class * implements com.google.gson.JsonSerializer -keep class * implements com.google.gson.JsonDeserializer # Google Android Advertising ID -keep class com.google.android.gms.internal.** { *; } -dontwarn com.google.android.gms.ads.identifier.** # UTNotifications Proguard Config (please do not edit) -keep public class universal.tools.notifications.* { *; } -dontwarn com.amazon.device.messaging.* -dontwarn universal.tools.notifications.AdmIntentService I've tried several different ways of making this work - examples of the mainTemplate.gradle I've found surrounding this issue, but nothing seems to fix it on my local machine. To note - it does build if I use Mono rather than IL2CPP and it appears to also work on Cloud Build - just not locally Thanks in advanced Alan
Upgraded sdk to 3.2.1 Unity 2018 3.3 but still: Code (CSharp): UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x00234] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:190 at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x0007f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:96 UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
You need to include more of your log before we can help you. The lines you included are just the summary. Most likely you still have a custom gradle template which refers to the older sdk?
I managed to fix mine by reinstalling the latest build tools. I removed 28.0.3 and let Unity install it again and then it started working for me... very odd!
Just updating everything didn't solve it for me. However, after doing the following steps inside the Build Settings I didn't get the "Gradle prewarm failed" message again and the deployment was successful: 1. Set "Build System" to "Internal (deprecated)" and deployed successfully to my Android phone 2. Set "Build System" back to "Gradle" and surprisingly deployed successfully to my Android phone again The build with "Gradle" as Build System in step 2 took a bit longer as apparently Unity was downloading something in the background (and fixing everything automatically). After this, further deployments were quick and worked like a charm.
When I removed version 28.0.3 of the build tools using Android Studio and tried to build using Unity 2018.3.4, it prompted me at the start of the build to update my tools, so I let it happen. This seemed to fix it then
I have same error but removing mainTemplate.gradle file solved the issue.When i import appcoinspurchasing plugin maintemplate.gradle is created and gradle prewarm error reappears.Please help me
I have fixed this ,please contact us (https://www.upltv.com/) or use this dod https://www.upltv.com/doc/dashboard...6%8E%A5%E5%85%A5%E5%B8%AE%E5%8A%A9&lang=zh-CN
How are your best people getting on with this, it's now October and using 2018.4.10 it's still happening. Tried everything above and nothing worked for me.
@monark maybe it's your setup which is special/doesn't work. We haven't heard of this issue for ages. I've also recently removed the warmup from all platforms but Windows Editor.
This thread has the errors I'm seeing https://forum.unity.com/threads/bui...-breaks-features-like-ar.754325/#post-5026457
Sadly I can't compile direct from Unity so I have no choice. I've had to go back to using the internal system and just building apks
Try to update android studio,and make sure that all FileName of the Unity project path is named in English.
I am having the same problem the project was running smooth before then I opened another project which occurs the problem but now the same problem is happening in all projects which were running smooth and error free previously. Please give me some solutions I have tried all the possible things mentioned in the blog. Thank you.