I have a project with 3 sub-projects. I want the 3 sub-projects to use the same dependencies versions so I factored all the versions in the root build.gradle:
In Android Studio, go to the Analyze menu and choose Run Inspection by Name -> Newer Library Versions Available. Choose Whole Project and wait for your results.