In project level build. gradle file jcenter() repository have first priority than google() repository. My idea is to Place google() repository as the first priority repository to avoid such errors in the future like
Failed to resolve: multidex-instrumentation
Here is the link to check to solve this error https://stackoverflow.com/questions/45608362/android-studio-3-0-beta-1-failed-to-resolve-com-android-supportmultidex1-0-2
In our project here google must be placed as a first priority.