Skip to content Skip to sidebar Skip to footer

Activity_main.xml Not Showing And Gradle Doesn't Finish Initial Build

Hi im kinda new to android studio and im trying to learn from tutorials on youtube but i cant seem to do it because the activity_main.xml is not opening up and stuck at waiting for

Solution 1:

Android Studio preview needs at least one success build in order to show the Preview.

Go to Build -> Rebuild project then check if there is any issues then run the app on an emulator (Or a real device) after, you'll be able to see the preview if your dependencies has no problem.

Solution 2:

The Design view need to finish the Gradle build.

You can use this solution-

add this line in gradle.propertise

org.gradle.daemon=trueorg.gradle.parallel=true

Then build again.

This is Gradle properties enter image description here

Edit

Check out this photo. Does your gradle setting look like that- enter image description here

Post a Comment for "Activity_main.xml Not Showing And Gradle Doesn't Finish Initial Build"