Cloned repository from Github gives error Design editor is unavailable until next gradle sync


I cloned the material components android example repository from this URL to Android Studio by doing File > New > Project from Version Control > Repository URL and using this link.

It’s loaded, but any file I try to view gives me the error "Design editor is unavailable until next gradle sync".

What am I missing here? The Sync Gradle icon does not appear either. It appears for other projects I created on my local machine.

I’ve posted a screenshot of my project structure.

P.S I’m an absolute newbie to Android.

enter image description here


You opened the wrong folder, it should have been Reply as the root directory.

Answered By – Uriel Frankel

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published