Unity's URP Shader Variant Build Time

I am using Unity 2022.3.10f1 version and build my application with URP in Android. I used to use 2021 earlier and the build time was between 10 - 20 mins, but now it is taking 6 hours!!
I don’t understand why the shader variants are in 100,000s and how do I resolve it?

I was following this link - Improvements to shader build time and runtime memory usage but it did not help me.

Can someone tell me what I can change in my settings?

9449495--1326410--01.png


You need to tweak URP settings. The thread you linked has a section on that.

Can you provide what exactly I need to tweak?

See URP Global Settings | Universal RP | 14.0.11 and Universal Render Pipeline Asset | Universal RP | 14.0.11