I know that on L I can only bind services that are declared explicit. In my app I'm currently using Youtube API and when running on devices with L I always get this error
java.lang.IllegalArgumentException: Service Intent must be explicit: Intent { act=com.google.android.youtube.api.service.START }
How can I fix the problem make Youtube API works also on L ?
It is available a new version of the Youtube API (1.2.1) that fixes this issue. It can be downloaded from here.
If you need to use the old version for some reason keep reading:
There is a bug in the Youtube API v1.0.0 in Lollipop. More info here and here.
As a workaround you can use android:targetSdkVersion="19" in the manifest while maintaining API 21 as build target (You still will be able to make use of the Lollipop API in your project).
*UPDATE*
The new android youtube SDK has been released! No more implicit intent problem:
https://developers.google.com/youtube/android/player/downloads/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With