title: Error inflating class android.support.v7.app.MediaRouteButton with Android Studio
body: <p>I'm having some issues with an Android-Chromecast sender app. I'm using Android Studio (with Proguard enabled for debug), I imported the required libraries in Gradle</p>
  
  <pre><code>compile 'com.android.support:appcompat-v7:22.+'
  compile 'com.android.support:mediarouter-v7:22.+'
  compile 'com.google.android.gms:play-services:7.0.0'
  </code></pre>
  
  <p>and then added "android.support.v7.app.MediaRouteButton" to my layout:</p>
  
  <pre><code>&lt;android.support.v7.app.MediaRouteButton
  android:id="@+id/media_route_button"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:layout_weight="1"
  android:mediaRouteTypes="user"
  android:visibility="gone" /&gt;
  </code></pre>
  
  <p>I can use all the methods and objects from the MediaRouter library in my Activity but when I run the app it crash trying to load the MediaRouteButton from the layout.
  Anyone know what is the problem?</p>
  
  <p>Thank you in advance</p>