Skip to content
Advertisement

How to fix error YouTubeInitializationResult.SERVICE_INVALID

I try use Youtube API in my Android App, my app looke like this:

JavaScript

But when i install on my real device, I get a error : Initialization Fail- Service invalid I have no idea to fix this error. Let me hear your idea, thank you 🙂

Advertisement

Answer

The Android YouTube API docs at: https://developers.google.com/youtube/android/player/ includes this note:

Note: Users need to run version 4.2.16 of the mobile YouTube app (or higher) to use the API.

I was getting a similar error until I upgraded the version of the YouTube app on my testing device.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement