title: Android Studio: Toggle Button gives me error stating Path.isConvex is not supported. (Ignore for this session)
body: <p>I'm using a ToggleButton for an activity, but I'm receiving the following error in the rendering window:</p>
  
  <blockquote>
    <ul>
    <li>Path.isConvex is not supported. (Ignore for this session)</li>
    </ul>
  </blockquote>
  
  <p>I'm currently on Api 23 for testing, and switching to api 17 solves the problem however, I'm wondering if this will causes errors in mobile phones with newer firmware (api levels).</p>
  
  <p>Is there a way to fix this on newer api levels so that the rendering window will stop showing this error?</p>
  
  <p>Here's my current xml file where the error is appearing:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;HorizontalScrollView xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="wrap_content"
      android:layout_height="match_parent"
      android:id="@+id/top_bar_2"&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:orientation="horizontal"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:gravity="center_vertical"&gt;
  
  
      &lt;ToggleButton
          android:id="@+id/BoldButton"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:textOff="B"
          android:textOn="B"
          android:textStyle="bold" /&gt;
  
      &lt;ToggleButton
          android:id="@+id/ItalicsButton"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:textOff="I"
          android:textOn="I"
          android:textStyle="italic" /&gt;
  
      &lt;ToggleButton
          android:id="@+id/UnderlineButton"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:textOff="U"
          android:textOn="U" /&gt;
  
      &lt;ImageButton
          android:id="@+id/tr_underline"
          android:src="@drawable/ic_menu_toolbox"
          android:layout_width="50dp"
          android:layout_height="50dp"
          android:layout_margin="5dp"
          tools:ignore="ContentDescription"
          /&gt;
  
      &lt;ImageButton
          android:id="@+id/tr_linkifications"
          android:src="@drawable/ic_menu_toolbox"
          android:layout_width="50dp"
          android:layout_height="50dp"
          android:layout_margin="5dp"
          tools:ignore="ContentDescription"
          /&gt;
  
      &lt;ImageButton
          android:id="@+id/tr_size"
          android:src="@drawable/ic_menu_toolbox"
          android:layout_width="50dp"
          android:layout_height="50dp"
          android:layout_margin="5dp"
          tools:ignore="ContentDescription"
          /&gt;
  
      &lt;ImageButton
          android:id="@+id/tr_search"
          android:src="@drawable/ic_menu_toolbox"
          android:layout_width="50dp"
          android:layout_height="50dp"
          android:layout_margin="5dp"
          tools:ignore="ContentDescription"
          /&gt;
  
  &lt;/LinearLayout&gt;
  &lt;/HorizontalScrollView&gt;
  </code></pre>