When different dependencies in the project try to use different versions of the same library, to ensure compatibility gradle will demote to the lowest required version
Open terminal & run
./gradlew :app:dependencies
and check conflicts