Cannot find symbol "messaging" in com.google.firebase.messaging.FirebaseMessagingService
<p>I am trying to access FirebaseMessagingService using firebase 9.2.1 library. I have successfully created a project then download the JSON file. I have finally integrated this JSON file with my project. FirebaseInstanceIDService is running fine but showing error with FirebaseMessagingService. So i checked my project folder inside android studio. Then i find that firebase-messaging 9.2.1 library is missing. How can i resolve this issue. I have already upgraded all of the SDK libraries. Please help me to fix this issue.</p>

<p><a href="https://i.stack.imgur.com/rHPwE.png" rel="noreferrer"><img src="https://i.stack.imgur.com/rHPwE.png" alt="enter image description here"></a></p>

<p><a href="https://i.stack.imgur.com/L2Jv4.png" rel="noreferrer"><img src="https://i.stack.imgur.com/L2Jv4.png" alt="enter image description here"></a></p>

<p><a href="https://i.stack.imgur.com/UsnCq.png" rel="noreferrer"><img src="https://i.stack.imgur.com/UsnCq.png" alt="enter image description here"></a></p>