title: Intellij Idea 2018.2.5 CE Android development issue, android sdk v28 is unstable/rendering issue
body: <p>First of all, I researched alot and this question is not a duplicate of <a href="https://stackoverflow.com/questions/33959478/rendering-issue-in-android-studio">Rendering Issue in Android Studio</a> its answer doesn't fix my problem (i already have the same configuration that is in its answer). Secondly I tried cleaning project, rebuilding project, running gradle sync too. Issue still persist.</p>
  
  <p>After starting a new project, i used to load a template basic activity but the layout xml files are actually not rendering.</p>
  
  <p><strong>Error:</strong>
  It says <code>Failed to instantiate one or more classes</code> inside that i see</p>
  
  <pre><code>The following classes could not be instantiated:
      - android.support.design.widget.CoordinatorLayout (Open Class, Show Exception, Clear Cache)
      - android.support.design.widget.AppBarLayout (Open Class, Show Exception, Clear Cache)
  Tip: Use View.isInEditMode() in your custom views to skip code or show sample data when shown in the IDE.
  If this is an unexpected error you can also try to build the project, then manually refresh the layout.
  Exception Details
  java.lang.ClassNotFoundException: android.view.View$OnUnhandledKeyEventListener
  Copy stack to clipboard
  </code></pre>
  
  <p><strong>my styles.xml file is:</strong></p>
  
  <pre><code>&lt;resources&gt;
  
      &lt;!-- Base application theme. --&gt;
      &lt;style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"&gt;
          &lt;!-- Customize your theme here. --&gt;
          &lt;item name="coordinatorLayoutStyle"&gt;@style/Widget.Support.CoordinatorLayout&lt;/item&gt;
          &lt;item name="floatingActionButtonStyle"&gt;@style/Widget.Design.FloatingActionButton&lt;/item&gt;
          &lt;item name="colorPrimary"&gt;@color/colorPrimary&lt;/item&gt;
          &lt;item name="colorPrimaryDark"&gt;@color/colorPrimaryDark&lt;/item&gt;
          &lt;item name="colorAccent"&gt;@color/colorAccent&lt;/item&gt;
      &lt;/style&gt;
      &lt;style name="AppTheme.NoActionBar"&gt;
          &lt;item name="windowActionBar"&gt;false&lt;/item&gt;
          &lt;item name="windowNoTitle"&gt;true&lt;/item&gt;
      &lt;/style&gt;
      &lt;style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar"/&gt;
      &lt;style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light"/&gt;
  
  &lt;/resources&gt;
  </code></pre>
  
  <p><strong>My gradle is using this dependency:</strong> and compilation and target sdk version is 28</p>
  
  <pre><code>implementation 'com.android.support:appcompat-v7:28.0.0'
  </code></pre>
  
  <p><strong>Right now it looks like:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/ecThE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ecThE.png" alt="enter image description here"></a></p>
  
  <p><strong>EDIT 1:</strong>
  So now at this point, i tried many things and found myself that the rendering issue is only in SdkVersion 28. When I use</p>
  
  <pre><code>android {
      compileSdkVersion 27
      defaultConfig {
          targetSdkVersion 27
          ...
      }
      ...
  }
  
  dependencies {
      implementation 'com.android.support:appcompat-v7:27.1.1'
      implementation 'com.android.support:design:27.1.1'
      ...
  }
  </code></pre>
  
  <p>It doesn't appear to be, so I want to investigate what's wrong with sdk version 28? I mean like whenever you make a project you get default config for version 28 and when i try this above snippet i still get warning that v27 is older, why? if v28 not stable enough then why is it default? I don't understand I want some useful answer for why this is!</p>
  
  <p>Thanks everyone who used time to read my question.</p>