This problem occurred while updating the app on google console

My problem was solved after adding 1 to the version code and version name

Yes, that was what I already said in the beginning, but you posted this:

So why didn’t that work: 24690 > 24689 ?
What is the version code that you use now?

This is a screenshot posted after my problem has been solved.

How about marking the correct answer as the solution.
That would save us further inquiries.