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
compile 'com.android.support:appcompat-v7:22.+'
compile 'com.android.support:mediarouter-v7:22.+'
compile 'com.google.android.gms:play-services:7.0.0'
and then added "android.support.v7.app.MediaRouteButton" to my layout:
<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" />
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?
Thank you in advance