The preview in Android Studio is stuck on "Loading..." and doesn't ever load

screenshot of my preview

I open Android Studio and everything in my project loads except for the preview screen. How can I make the preview load?

3 Answers

In my case, I prematurely closed the Android studio while it was building the project. And when I tried File > Sync Project with Gradle Files, it worked.

1

For me, What was causing the bug was a file named firestore.rules (Working on a flutter App) I've realized that when temporary removing every file (not document) in the project directory.

So what you can do is remove as much files as needed to make it work again, and then add them one by one until it bug again: this is your problematic file.

(you can btw test it immediatly by creating a new project to see if it's not a bug with your android studio software)

Another option is just removing the .idea folder.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like