title: How to fix weird Designer view errors?
body: <p>Since I updated to target android Pie, I got this weird error in the designer view that seems to affect the support.v7 package.
  After some time trying to figure it out by myself and googling the problem, I still cant fix it.</p>
  
  <p>The builds work just fine but not having a designer to see changes in the UI is quite troublesome</p>
  
  <p>Screenshots of the designer errors:</p>
  
  <p><a href="https://i.stack.imgur.com/SYUQR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SYUQR.png" alt="enter image description here"></a></p>
  
  <p>I have tried going back to Oreo versions and re-downloading all packages to see if it will fix the problem with no success.</p>
  
  <pre><code>&lt;!--Removed TextView and similar component information to reduce lines--&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      android:orientation="vertical"
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
      &lt;android.support.v7.widget.Toolbar
          android:id="@+id/toolbar"
          app:title="ITM"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:minHeight="?attr/actionBarSize"
          android:background="?attr/colorPrimary"
          android:elevation="4dp"
          android:theme="@style/ThemeOverlay.AppCompat"/&gt;
      &lt;!--Main View--&gt;
      &lt;ScrollView
          android:layout_weight="1"
          android:layout_width="match_parent"
          android:layout_height="match_parent"&gt;
          &lt;android.support.v7.widget.GridLayout
              app:columnCount="2"
              app:orientation="horizontal"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:padding="20dp"&gt;
              &lt;android.support.v7.widget.GridLayout
                  app:columnCount="2"
                  app:orientation="horizontal"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  app:layout_columnSpan="2"
                  android:layout_marginLeft="20dp"
                  android:layout_marginRight="20dp"&gt;
                  &lt;TextView/&gt;
                  &lt;TextView/&gt;
                  &lt;TextView/&gt;
                  &lt;TextView/&gt;
                  &lt;TextView/&gt;
                  &lt;TextView/&gt;
                  &lt;TextView/&gt;
                  &lt;TextView/&gt;
                  &lt;TextView/&gt;
              &lt;/android.support.v7.widget.GridLayout&gt;
              &lt;View/&gt;
              &lt;TextView/&gt;
              &lt;Switch/&gt;
              &lt;TextView/&gt;
              &lt;TextView /&gt;
              &lt;Switch/&gt;
              &lt;TextView/&gt;
              &lt;TextView/&gt;
              &lt;Switch/&gt;
              &lt;TextView/&gt;
          &lt;/android.support.v7.widget.GridLayout&gt;
      &lt;/ScrollView&gt;
  &lt;!--Only part that shows is here--&gt;
      &lt;LinearLayout
          android:orientation="vertical"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"&gt;
          &lt;TextView/&gt;
          &lt;Button/&gt;
      &lt;/LinearLayout&gt;
  &lt;/LinearLayout&gt;
  </code></pre>