我想使用YouTube API V3按照名称,次数,视频数和观看次数来获取频道,以便在CardView(我已拥有)中显示它们。如何使用YouTube API V3获取频道
如何将api添加到我的build.gradle中?
如果我添加compile 'com.google.apis:google-api-services-youtube:v3-rev182-1.22.0'
我build.gradle(Module app)
然后我得到:
Error: Conflict with dependency 'com.google.code.findbugs:jsr305' in project ':app'. Resolved versions for app (1.3.9) and test app (2.0.1) differ. See http://g.co/androidstudio/app-test-app-conflict for details.
Warning: WARNING: Dependency org.apache.httpcomponents:httpclient:4.0.1 is ignored for release as it may be conflicting with the internal version provided by Android. In case of problem, please repackage it with jarjar to change the class packages
如何使用API?
谢谢,我现在可以使用API了。 –
如果有帮助,请接受答案! –
它工作正常,但我仍然不知道如何获取频道子数,视频数和观看次数以在CardView中显示它们。 –