Unity build error

I am getting the following error when trying to get unity build, thank you for any help

Build failure:compilation failed; see the compiler error output for details. See the console for details.

Anytime you make a build, it will store any errors in the console. You need to correct any errors you see in the console.,The Console will list any errors, you need to look at them, and correct them, also there is a compiler logfile that stores the same info.

The Unity version Gradle should be upgraded, if you are using unity 2019.4 or older versions, the Gradle has to be upgraded manually if you have installed the Android SDK and others from the Unity HUB, you will be getting this error. Follow this link for the Gradle upgrade for Android.
Unity için ARCore SDK'sı kullanımdan kaldırıldı  |  Google for Developers
If you are using Unity 2020 or higher versions, the Gradle is already upgraded. Hopefully, this solves the error you are getting.