5

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 3

6

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
  • It worked for me @DrDonkey. Thanks.
    – laksys
    Commented Dec 25, 2019 at 6:17
0

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)

0

Another option is just removing the .idea folder.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .