亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

無法解析方法 getYouTubeService()

無法解析方法 getYouTubeService()

森林海 2021-07-09 14:11:35
我已經導入了正確的 gradle 項目……我可以使用“Youtube”對象,但無法訪問他們自己的 API 文檔中描述的方法?無法解析方法 getYouTubeService()  YouTube youtube = getYouTubeService();        try {            HashMap<String, String> parameters = new HashMap<>();            //example            parameters.put("id", "theid");            YouTube.Subscriptions.Delete subscriptionsDeleteRequest = youtube.subscriptions().delete(parameters.get("id").toString());            subscriptionsDeleteRequest.execute();        }catch(Exception e){            e.printStackTrace();        }搖籃://youtube apiimplementation 'com.google.apis:google-api-services-youtube:v3-rev205-1.24.1'// Dependency for Google Sign-Inimplementation 'com.google.android.gms:play-services-auth:15.0.1'// Dependencies for the REST API exampleimplementation 'com.google.api-client:google-api-client:1.22.0'implementation 'com.google.api-client:google-api-client-android:1.22.0'implementation 'com.google.apis:google-api-services-people:v1-rev139-1.22.0'
查看完整描述

1 回答

  • 1 回答
  • 0 關注
  • 224 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號