Waiting For Build To Finish | Android Studio
Layout Editor sometimes may not works fine so, Long story short, let’s jump into solutions.
Before you use any of options below, please make sure your gradle plugin and project gradle versions are correct; you can see this table to check version compatibility. You also need to check Build Tools version.
1. Sync Gradle with Project Files
This is a little button in top-right corner of Android Studio next to AVD.
2. Clean Project
You can find this option in Build tab. use Alt+b to open Build menu window.
3. Rebuild Project
Same as option 2, you can find it under Build Menu.
4. Invalidate Cache And Restart
you can find this option in File tab. use Alt+f to open File menu window
5. Deleting .gradle and .idea of Project and Rebuild then
Close android studio, go to your project directory and delete .gradle and .idea folders. After that open project and use option 3.
6. Deleting .gradle under User directory in OS folder alongside option 5
Usually you can find .gradle under C:/Users/[NAME]/ directory. Close AS delete .gradle and also do option 5 too.
Let me know if anything else solved your problem :)
Happy To Code, Happy To Help 🍻