Android on Youtube error message SERVICE_MISSING

Hi i made the same application with my json. The problem in the video I am getting on the emulator is "There was an error initializing the youtube player. Note: Allowed internet permission in manifest

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();

}

      

SERVICE_MISSING error result

Hope I get a solution from you.

+3


source to share


4 answers


Your device / emulator may be missing the YouTube app or, if installed, is too old (should be 4.2.16 or higher).



+4


source


create a device in emulator that needs to contain google api to use google services. This means that you have not implemented the google api in your devices.



0


source


Thanks for the answers for me, the problem was in the youtube app. As I checked with a mobile device the app worked fine. Therefore, it is necessary that the YouTube application on the device

0


source


The problem is you missed the permission to access the Internet

<uses-permission android:name="android.permission.INTERNET" />

      

in your AndroidManifest.xml

The emulator contains no game services, so you will get an error because of this also

-1


source







All Articles