Gradle build failed after use ECS

My project was originally coded entirely in MonoBehavior and it built successfully, but then because there were too many GameObjects leading to poor performance, I installed ECS and used it for a bit.
But I can’t build and keep getting “Gradle Build Failed” message.
My project uses AppLovin Max.