others-How to resolve Could not resolve com.google.android.gms exception?

How to resolve Could not resolve com.google.android.gms exception in android?

Target

Environment

android studio 3.5

Problem

When you build an android app, you may encounter this problem:

ERROR: Unable to resolve dependency for ':[email protected]/compileClasspath': Could not resolve com.google.android.gms:play-services-measurement-sdk-api:[17.3.0].
Show Details
Affected Modules: app

Solution

Make sure your computer is online ( Can access the internet!)

References

You can view some references as follows:

-->