title: navigation drawer issue (not showing layout preview)
body: <p>I created the app and I want to use navigation drawer menu, but when I tried to edit in navigation drawer xml, then the problem "Waiting for build to finish..." happened and I don't see layout previw on left side of android studio</p>
  
  <p>to relate</p>
  
  <p><a href="https://i.stack.imgur.com/ZFNVt.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ZFNVt.png" alt="activity_main_drawer"></a></p>
  
  <p>layout_preview not found here</p>
  
  <p><a href="https://i.stack.imgur.com/dtGAu.png" rel="noreferrer"><img src="https://i.stack.imgur.com/dtGAu.png" alt="layout_preview"></a></p>
  
  <p>I tried this <a href="https://stackoverflow.com/a/49305312/7639296">soultion</a> to solve this issue but unfortunately not working for me</p>
  
  <p><strong>this is activity_main_drawer.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;menu xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      tools:showIn="navigation_view"&gt;
  
      &lt;group android:checkableBehavior="single"&gt;
          &lt;item
              android:id="@+id/articles"
              android:icon="@drawable/ic_menu_camera"
              android:title="@string/articles" /&gt;
          &lt;item
              android:id="@+id/windows"
              android:icon="@drawable/ic_menu_gallery"
              android:title="@string/windows" /&gt;
          &lt;item
              android:id="@+id/linux"
              android:icon="@drawable/ic_menu_slideshow"
              android:title="@string/linux" /&gt;
          &lt;item
              android:id="@+id/miscellaneous_devices"
              android:icon="@drawable/ic_menu_manage"
              android:title="@string/miscellaneous_devices" /&gt;
  
          &lt;item
              android:id="@+id/information_security"
              android:icon="@drawable/ic_menu_manage"
              android:title="@string/information_security" /&gt;
  
          &lt;item
              android:id="@+id/facebook"
              android:icon="@drawable/ic_menu_manage"
              android:title="@string/facebook" /&gt;
      &lt;/group&gt;
  
      &lt;item android:title="Communicate"&gt;
          &lt;menu&gt;
              &lt;item
                  android:id="@+id/nav_share"
                  android:icon="@drawable/ic_menu_share"
                  android:title="Share" /&gt;
              &lt;item
                  android:id="@+id/nav_send"
                  android:icon="@drawable/ic_menu_send"
                  android:title="Send" /&gt;
          &lt;/menu&gt;
      &lt;/item&gt;
  
  &lt;/menu&gt;
  </code></pre>
  
  <p><strong>activity_main</strong></p>
  
  <pre><code>    package www.pro.cs_is.com.procsis;
  
  import android.os.Bundle;
  import android.support.design.widget.FloatingActionButton;
  import android.support.design.widget.Snackbar;
  import android.view.View;
  import android.support.design.widget.NavigationView;
  import android.support.v4.view.GravityCompat;
  import android.support.v4.widget.DrawerLayout;
  import android.support.v7.app.ActionBarDrawerToggle;
  import android.support.v7.app.AppCompatActivity;
  import android.support.v7.widget.Toolbar;
  import android.view.Menu;
  import android.view.MenuItem;
  
  public class MainActivity extends AppCompatActivity
          implements NavigationView.OnNavigationItemSelectedListener {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
          Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
          setSupportActionBar(toolbar);
  
  
  
          DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
          ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(
                  this, drawer, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close);
          drawer.addDrawerListener(toggle);
          toggle.syncState();
  
          NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view);
          navigationView.setNavigationItemSelectedListener(this);
      }
  
      @Override
      public void onBackPressed() {
          DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
          if (drawer.isDrawerOpen(GravityCompat.START)) {
              drawer.closeDrawer(GravityCompat.START);
          } else {
              super.onBackPressed();
          }
      }
  
      @Override
      public boolean onCreateOptionsMenu(Menu menu) {
          // Inflate the menu; this adds items to the action bar if it is present.
          getMenuInflater().inflate(R.menu.main, menu);
          return true;
      }
  
      @Override
      public boolean onOptionsItemSelected(MenuItem item) {
          // Handle action bar item clicks here. The action bar will
          // automatically handle clicks on the Home/Up button, so long
          // as you specify a parent activity in AndroidManifest.xml.
          int id = item.getItemId();
  
          //noinspection SimplifiableIfStatement
          if (id == R.id.action_settings) {
              return true;
          }
  
          return super.onOptionsItemSelected(item);
      }
  
      @SuppressWarnings("StatementWithEmptyBody")
      @Override
      public boolean onNavigationItemSelected(MenuItem item) {
          // Handle navigation view item clicks here.
          int id = item.getItemId();
  
          if (id == R.id.miscellaneous_devices) {
              // Handle the camera action
          } else if (id == R.id.articles) {
  
          } else if (id == R.id.windows) {
  
          } else if (id == R.id.linux) {
  
          } else if (id == R.id.facebook) {
  
          } else if (id == R.id.information_security) {
  
          }
  
          DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
          drawer.closeDrawer(GravityCompat.START);
          return true;
      }
  }
  </code></pre>
  
  <blockquote>
    <p><strong>Update 1</strong> : After many attempts it's seems a general Issue after update IDE to version 3.1.2, till now there's only one <a href="https://stackoverflow.com/a/50202384/7639296">solution</a> which @mtak suggested although it is similar to the top menu options in the preview</p>
  </blockquote>