how to upload video to youtbue using YouTube Direct Lite App for Android

ぐ巨炮叔叔 提交于 2019-12-12 03:53:32

问题


i'm try to upload video from youtube without using intent

in my previous Q using youtube data in android project

Ibrahim Ulukaya Proposed to use in his example https://code.google.com/p/ytd-android/

at the time i add the project i receive message " built path contains duplicate entry 'src' for project "Youtube Direct ..."

this after i Include Google Play Services library to the project (this fix the all compile error exapt this "Error generating final archive: Found duplicate file for APK: resources.arsc")

in some form i saw that problem cause from marven plug in so i add m2eclipse plugin maven-android-plugin

but i dont understand after i red marvel introdution what marvel do and for what the project need this plug in ???

Currently I am in state that I can not even start the project because of compilation problem. Someone was in this situation and know what I need to do for resolve this and start working with the project???

Ibrahim Ulukaya told me that i don't need the whole project, i can just use UploadService.java and ResumableUpload.java. so I deleted the other files but did not help


回答1:


I think Maven is a really good tool, but if you want you can create an Eclipse Android project without Maven, that is simpler. Then copy the code from the src folder and resources from the res folder.

You must include Google Play Services and the latest YouTube client library for Android with its dependencies:

https://code.google.com/p/google-api-java-client/wiki/APIs#YouTube_Data_API



来源:https://stackoverflow.com/questions/16375568/how-to-upload-video-to-youtbue-using-youtube-direct-lite-app-for-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!