Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Preview is unavailable until a successful build

Tags:

I tried fixing this for ages now, but I don't know what to do. How do I get it to display a preview? Here is a screenshot of the code:

img

like image 587
Mattias Avatar asked Nov 07 '17 18:11

Mattias


People also ask

How do I fix the design editor is unavailable until a successful build?

Just you have to do >> open File --> Sync Project with Gradle Files and then after >> open File --> invalidate Android Studio caches / restart so done this problem.:) Show activity on this post.

Why does gradle Sync Fail?

In some cases when your Gradle files are deleted or corrupted you will not be able to download new Gradle files in android studio. In this case, we have to delete the Gradle files which are present already and then again sync your project to download our Gradle files again.

How do I sync gradle with Android Studio?

Open your gradle. properties file in Android Studio. Restart Android Studio for your changes to take effect. Click Sync Project with Gradle Files to sync your project.


1 Answers

Solved :

Try 1 : Just close and open the Android Studio

Try 2 : Build -> Clean project -> rebuild

Try 3 : Build -> Clean project -> rebuild -> restart Android studio

Mi

like image 154
ravz Avatar answered Oct 22 '22 19:10

ravz