"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:
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.

Did you find the answer?