0

I have updated to Android Studio 3.1.2.I just created navigation drawer activity. But when I go into the activity_main_drawer.xml file,it's keep saying waiting for build to finish even after a build has already finished.how can i solve this problem? I just try 6 times but have same result.

  • If it says waiting for build to finish you only need to wait. Android Studio is heavy af to run. What are your pc specs? If you think that your pc is fine just try downgrading to a old version – Joaquín Jul 06 '18 at 20:02
  • See this [navigation drawer issue (not showing layout preview)](https://stackoverflow.com/questions/50201356/navigation-drawer-issue-not-showing-layout-preview/50221647#50221647) –  Jul 06 '18 at 20:02
  • @JoaquinAlvarez Specs are fine.after i upgrade to 3.1.2 this problem came. – Pium Sudhara Jul 06 '18 at 20:10
  • @mTak same result have :( – Pium Sudhara Jul 06 '18 at 20:12
  • See my answer for a workaround not solution if you did not get it by the link –  Jul 06 '18 at 20:21
  • @mTak it's temporary work.. thanks :) – Pium Sudhara Jul 06 '18 at 20:27

3 Answers3

0

Android Studio can behave like that sometimes. Either you have to wait or try reinstalling Android Studio all together. Or, you can try and cleaning and rebuilding your project.

Akash Veerappan
  • 76
  • 1
  • 1
  • 6
0

If you have nothing on your activity yet, just create another navigation drawer activity. Or, just clean then rebuild your project.

Ron Arel
  • 371
  • 1
  • 5
  • 14
0

Steps for temporary workaround:

  1. Remove tools:showIn="navigation_view"
  2. Close activity_main_drawer.xml
  3. Reopen it and go to design tab, wait 2-3secs

You will see your menu but as a regular menu.