After detecting an error, you will be presented with three options for Android Studio
Install repository and synchronization project
Show in file
Show in the Project Structure dialog box
You just need to click " Install Repository and Sync Project ". After that, it worked great for me.
gerardnimo
source share