YouTube Api for android exception “service_missing”

后端 未结 2 2202
盖世英雄少女心
盖世英雄少女心 2021-02-19 19:48

I want to play you tube video in my android application

I got exception while youtube initialization like \"service_missing\".

I write following code,

         


        
2条回答
  •  眼角桃花
    2021-02-19 20:34

    The issue with Android 11 is the os is restricting access to other apps. https://developer.android.com/training/basics/intents/package-visibility

    Add the following to manifest tag in AndroidManifest to fix YouTube issue:

    
       
         
       
    ```
    

提交回复
热议问题