I started to learn Android Studio from yesterday. I try to echo out simple \"Hello World\":
If you are in corporate setting where there is a proxy server, double check your proxy settings.
If you think you fat-fingered the password, there is a Clear passwords button you can click to where you can re-enter your creds. HTH
Go to File > Sync Project with Gradles Files.
just click file in your android studio then click Sync Project with Gradle Files..
if it won't work, click Build click Clean Project.
it always work for me
In my case, it was because it didn't like that I left the minSDK and targeSdk in the manifest. Go figure.
Simply restart the Android Studio. In my case, I was offline before starting the Android Studio, but online when I did restart.
Edit you xml file in Notepad++ and build it again. It's work for me