Admob compile error

I am using unity 2022.3.57f1 making an android game. It builds and runs perfectly…the moment i import admob package, it breaks down and starts giving me gradle error messages. Has anyone ever faced this problem and resolved it?