title: Android API 25 CardView Unsupported Type
body: <p>I am completely stumped with this one. I am running Android Studio 2.2.2 and yesterday everything was fine. The app complied and launched on the device with no issues what so ever. Today, I get this...</p>
  
  <p><a href="https://i.stack.imgur.com/aFpab.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aFpab.png" alt="enter image description here"></a></p>
  
  <p>Looking at the screen shot you can see the highlighted area that states "Error:Unsupported type 'andorid.support.v7.widget.CardView'.</p>
  
  <p>Here is my Gradle</p>
  
  <pre><code>buildscript {
  repositories {
      maven { url 'https://maven.fabric.io/public' }
  
  }
  
  dependencies {
      classpath 'io.fabric.tools:gradle:1.+'
  }
  }
  apply plugin: 'com.android.application'
  apply plugin: 'io.fabric'
  
  
  repositories {
  maven { url 'https://maven.fabric.io/public' }
  maven { url "https://jitpack.io" }
  mavenCentral()
  }
  
  
  
  android {
  compileSdkVersion 25
  buildToolsVersion '25.0.0'
  
  defaultConfig {
      applicationId "com.rdvejuicecalculator.and"
      minSdkVersion 14
      targetSdkVersion 25
      versionCode 88
      versionName "6.3.7"
  
      applicationVariants.all { variant -&gt;
          variant.outputs.each { output -&gt;
              def file = output.outputFile
              def fileName = file.name.replace(".apk", "-v" + versionName + "-      
     c" + versionCode + ".apk")
              output.outputFile = new File(file.parentFile, fileName)
          }
      }
  }
  buildTypes {
      debug {
          applicationIdSuffix ".debug"
          versionNameSuffix "-DEBUG"
          //ext.enableCrashlytics = false
          try {
              signingConfig signingConfigs.debug
          } catch (ex) {
          }
          minifyEnabled false
      }
      release {
          try {
              signingConfig signingConfigs.release
          } catch (ex) {
          }
          zipAlignEnabled true
          minifyEnabled false
          proguardFiles getDefaultProguardFile('proguard-android.txt'),
  'proguard-rules.pro'
      }
  }
  }
  
  dependencies {
  compile fileTree(dir: 'libs', include: ['*.jar'])
  testCompile 'junit:junit:4.12'
  compile 'com.android.support:cardview-v7:25.1.1'
  compile 'com.android.support:recyclerview-v7:25.1.1'
  compile 'com.github.AndroidDeveloperLB:MaterialPreferenceLibrary:9'
  compile 'com.afollestad.material-dialogs:core:0.9.0.1'
  compile 'io.github.kobakei:ratethisapp:1.0.5'
  compile 'com.github.paolorotolo:appintro:4.0.0'
  compile 'com.android.support:appcompat-v7:25.1.1'
  compile('com.crashlytics.sdk.android:crashlytics:2.5.7@aar') {
      transitive = true;
  }
  compile 'com.android.support:support-v4:25.1.1'
  compile 'com.android.support:design:25.1.1'
  compile('com.crashlytics.sdk.android:answers:1.3.8@aar') {
      transitive = true;
  }
  compile 'com.github.paolorotolo:expandableheightlistview:1.0.0'
  compile 'com.google.android.gms:play-services-drive:10.2.0'
  compile 'com.google.android.gms:play-services-auth:10.2.0'
  compile files('libs/opencsv-3.8.jar')
  compile 'de.psdev.licensesdialog:licensesdialog:1.8.1'
  compile 'com.android.support:multidex:1.0.1'
  }
  </code></pre>
  
  <p>And here is the referenced layout xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:orientation="vertical"&gt;
  
  &lt;android.support.v7.widget.CardView   xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:card_view="http://schemas.android.com/apk/res-auto"
      android:id="@+id/card_view"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:layout_margin="10dp"
      card_view:cardCornerRadius="4dp"&gt;
  
  
      &lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"&gt;
  
  
          &lt;RelativeLayout
              android:id="@+id/relativeLayout1"
              style="?pageBackground"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:gravity="top"
              android:isScrollContainer="true"
              android:paddingLeft="5dp"
              android:paddingRight="5dp"
              android:paddingTop="10dp"&gt;
  
  
       .... Some text views and edit text views ....
  
  
          &lt;/RelativeLayout&gt;
      &lt;/ScrollView&gt;
  &lt;/android.support.v7.widget.CardView&gt;
  </code></pre>
  
  <p></p>
  
  <p>What I have done so far is, Clean the project, build the project, reinstalled Android Studio. Uninstalled and reinstalled API 25 and 24 to 14. But I still get this error and the app does not run. Does anyone have any ideas to try?</p>