"Configuration `releaseRuntimeClasspath` contains AndroidX dependencies" error

Hello, I made a mobile game for Android and I am trying to export the project. The problem is that the following message is shown:
imagen_2023-09-12_195151886
I tried to solve it many times by finding answers online, but nothing is working. I’d appreciate if someone helps me to fix it.

Thank you.