I started to learn Android Studio from yesterday. I try to echo out simple \"Hello World\":
I faced same issue even after rebuilding my project multiple times successfully. I closed the project and re-opened, issue resolved.
Go online before starting android studio. Then go file->New project Follow onscreen steps. Then wait It will download the necessary files over internet. And that should fix it.
Quit the Android Studio
( not close the project Quit
the Android Studio
) then open the project and go to Android Studio > Build > Clean Project
Then
Android Studio > File > Sync Project with Gradles Files
as the pic below
If your problem still exists then click the Install build tool as the pic below and then
Android Studio > File > Sync Project with Gradles Files
I had tried to change SDK Version:
Check below image: In that I changed 27 from Android P
Do this
Build -> Rebuild Project