Search code examples
androidandroid-youtube-api

Android on Youtube SERVICE_MISSING error message


Hai i have done the same application with my json .. The problem in the videoView i am getting on emulator is "An error occurred while initializing the youtube player .. Note :Internet Permission in manifest is given

I tried to trace the error

public void onInitializationFailure(YouTubePlayer.Provider player, YouTubeInitializationResult errorReason){

// TODO Auto-generated method stub

String errorMessage = errorReason.toString();

Toast.makeText(this, errorMessage, Toast.LENGTH_LONG).show();

}

The error result is SERVICE_MISSING

Hope i will get the solution from you.


Solution

  • Your device/emulator is probably missing the YouTube application or, if installed, it is too old (must be 4.2.16 or greater).