title: Android Support Design gradle error
body: <p>This was my <code>build.gradle</code> file:</p>
  
  <pre><code>...
  dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
      compile 'com.android.support:appcompat-v7:22.0.0'
      compile 'com.android.support:cardview-v7:21.0.+'
      ...
  }
  </code></pre>
  
  <p>before I add:</p>
  
  <pre><code>compile 'com.android.support:design:22.2.0'
  </code></pre>
  
  <p>Now when I build or rebuild my project (I've synced <code>gradle</code> a few times) I get this errors:</p>
  
  <pre><code>.../utils/CustomEditText.java
  Error:(6, 42) Gradle: error: cannot find symbol class TintEditText
  Error:(14, 35) Gradle: error: cannot find symbol class TintEditText
  Error:(37, 8) Gradle: error: cannot find symbol method isInEditMode()
  Error:(57, 3) Gradle: error: cannot find symbol method setTypeface(Typeface)
  Error:(65, 5) Gradle: error: method does not override or implement a method from a supertype
  Error:(67, 23) Gradle: error: cannot find symbol variable super
  ...
  </code></pre>
  
  <p>Inside my <code>CustomEditText</code> (that extends <code>TintEditText</code>) and inside all Activities that use that <code>CustomEditText</code>.</p>
  
  <p>The import doesn't throw any error nor the <code>Class:</code></p>
  
  <pre><code>import android.support.v7.internal.widget.TintEditText;
  </code></pre>
  
  <p><br>What could it be?</p>
  
  <p><strong>UPDATE:</strong>
  Using <strong>ianhanniballake</strong> suggestion, <code>AppCompatEditText</code> instead of the internal <code>TintEditText</code>, solves the compile time error and answers this question but now I'm having a run time error:</p>
  
  <pre><code>java.lang.IllegalArgumentException: AppCompat does not support the current theme features 
  </code></pre>
  
  <p>I've seen some question related to this and the solution mentioned was something like:</p>
  
  <pre><code>&lt;style name="MyMaterialTheme" parent="Theme.AppCompat.NoActionBar"&gt;
          &lt;item name="windowNoTitle"&gt;true&lt;/item&gt;
          &lt;item name="windowActionBar"&gt;false&lt;/item&gt;
          ...
  &lt;/style&gt;
  </code></pre>
  
  <p>But I don't want to fallow this approach because I've some <code>Activities</code> that use <code>ActionBar</code> and others who don't. My styles are:</p>
  
  <pre><code>&lt;style name="MyTheme" parent="Theme.AppCompat.Light"&gt;
          &lt;item name="colorControlNormal"&gt;@color/txt_light_grey&lt;/item&gt;
          &lt;item name="colorControlActivated"&gt;@color/default_orange&lt;/item&gt;
          &lt;item name="colorControlHighlight"&gt;@color/txt_light_grey&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="MyTheme.ActionBar.Orange" parent="MyTheme"&gt;
          &lt;item name="windowActionBarOverlay"&gt;false&lt;/item&gt;
          &lt;item name="colorPrimary"&gt;@color/default_orange&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="MyTheme.FullScreen" parent="MyTheme"&gt;
          &lt;item name="windowActionBar"&gt;false&lt;/item&gt;
          &lt;item name="android:windowNoTitle"&gt;true&lt;/item&gt;
          &lt;item name="android:windowFullscreen"&gt;true&lt;/item&gt;
          &lt;item name="android:windowContentOverlay"&gt;@null&lt;/item&gt;
      &lt;/style&gt;
  </code></pre>
  
  <p>And inside my base <code>Activity</code> I do:</p>
  
  <pre><code>getWindow().requestFeature(mActionBarView != null ? Window.FEATURE_ACTION_BAR : Window.FEATURE_NO_TITLE);
  </code></pre>
  
  <p>To enable or disable the <code>ActionBar</code>.<br>
  As I've stated this works pretty well until I add <code>'com.android.support:design:22.2.0'</code> or update <code>appcompat-v7:22.0.0</code> to 22.<strong>2</strong>.0. I just want to use a <code>TabLayout</code>, but I guess I'll not...</p>