title: android.support.v7.widget.AppCompatButton could not be instantiated (using custom style)
body: <p><strong>This is not fixed by simply changing Theme.AppCompat.Light.DarkActionBar to Base.Theme.AppCompat.Light.DarkActionBar</strong></p>
  
  <p>I am attempting to use a custom button style but am receiving the following error:</p>
  
  <p>The following classes could not be instantiated:</p>
  
  <p><code>android.support.v7.widget.AppCompatButton</code></p>
  
  <p><strong>This is not fixed by simply changing Theme.AppCompat.Light.DarkActionBar to Base.Theme.AppCompat.Light.DarkActionBar</strong></p>
  
  <p>I am using a custom style, so this has in all likelihood has nothing to do with that. </p>
  
  <p>Here is my current code:</p>
  
  <p><strong>Styles.XML</strong> </p>
  
  <p></p>
  
  <pre><code>&lt;!-- Base application theme. --&gt;
  &lt;style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar"&gt;
      &lt;!-- Customize your theme here. --&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="RaisedButton" parent="Widget.AppCompat.Button.Colored"&gt;
  
      &lt;item name="backgroundTint"&gt;@color/colorButton&lt;/item&gt;
      &lt;item name="android:textColor"&gt;@color/colorButtonText&lt;/item&gt;
  
  
  &lt;/style&gt;
  </code></pre>
  
  <p></p>
  
  <p>In <strong>activity_patient_main.xml</strong></p>
  
  <pre><code>&lt;android.support.v7.widget.AppCompatButton
      android:id="@+id/button3"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:text="@string/ask_a_question"
      android:layout_marginTop="20dp"
      android:layout_marginBottom="20dp"
      android:theme="@style/RaisedButton"
      android:onClick="buttonClicked"
      android:textSize="60sp" /&gt;
  </code></pre>
  
  <p>Things I've tried:</p>
  
  <p>Changing Theme.AppCompat.Light.DarkActionBar to Base.Theme.AppCompat.Light.DarkActionBar,</p>
  
  <p>Clear Cache and Restart</p>
  
  <p>Changing my Gradle Version to <code>28.0.0-alpha1</code></p>
  
  <p>Changing from <code>Widget.AppCompat.Button.Colored</code> to <code>Base.Widget.AppCompat.Button.Colored</code></p>
  
  <p>Checking that I am extending <code>AppCompatActivity</code>
  (I am)</p>
  
  <p>Please note that It does run on my phone, but will not render in android studio. I am unaware if this is just a problem with the renderer, and if so, can the problem be solved?</p>
  
  <p>Thanks for the assistance!</p>