Could not create service of type ExecutionHistoryStore

Hi Guys
I get Gradle failed for my project and it includes firebase & GameAnalitycs.
I removed both of them but get that error yet.

I use android sdk, ndk , gradle from unity hub.

Trying to add file C:/.../Temp/gradleOut/libs/gameanalytics.aar to the list of ouptut files in the build report, but a file at that path has already been added.
UnityEngine.GUIUtility:processEvent(Int32, IntPtr)

* What went wrong:

UnityEngine.GUIUtility:processEvent(Int32, IntPtr)

Could not create service of type ExecutionHistoryStore using ExecutionServices.createExecutionHistoryStore().

UnityEngine.GUIUtility:processEvent(Int32, IntPtr)

> Cannot lock execution history cache (C:\Projects\...\Temp\gradleOut\.gradle\5.1.1\executionHistory) as it has already been locked by this process.

UnityEngine.GUIUtility:processEvent(Int32, IntPtr)

thanks

1 Like

Have you tried restarting Unity and/or rebooting? That should unlock the file I would think.

I faced this same issue after updating my project to Unity 2020.1 recently, and the answer on Gradle build failed > Could not create service of type ExecutionHistoryStore using ExecutionServices - Questions & Answers - Unity Discussions solves the issue for me: