2015. 4. 28. 17:30ㆍ안드로이드 개발
* Eclipse - Maven 연동
http://freestrokes.tistory.com/35
http://duongame.blogspot.kr/2014/09/android-maven.html
*M2_HOME 에러 발생시 대응법
* OSX에서 자바 버전 문제 발생시 대응법
http://stackoverflow.com/questions/27973436/maven-cant-cant-compile-java-1-8
* NoClassDefFoundError 발생시 대응법 --> maven 3.0.5 버전 설치하면 해결됨
[WARNING] Error injecting: com.jayway.maven.plugins.android.phase01generatesources.GenerateSourcesMojo
java.lang.NoClassDefFoundError: Lorg/sonatype/aether/RepositorySystem;
at java.lang.Class.getDeclaredFields0(Native Method)
http://msbaek.tumblr.com/page/2
* Could not find tool 'aapt' 발생시 대응법
Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.0.0-alpha-13:generate-sources (default-generate-sources) on project YoutubeUploadExam: Execution default-generate-sources of goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.0.0-alpha-13:generate-sources failed: Could not find tool 'aapt'. Please provide a proper Android SDK directory path as configuration parameter <sdk><path>...</path></sdk> in the plugin <configuration/>. As an alternative, you may add the parameter to commandline: -Dandroid.sdk.path=... or set environment variable ANDROID_HOME. -> [Help 1]
http://stackoverflow.com/questions/20638699/maven-invalid-sdk-platform-api-level-16-not-available
* trouble processing "javax/xml/namespace/QName.class" 대응법
* Youtube 연동
Google+ Platform for Android
https://developers.google.com/+/mobile/android/getting-started
android PlusClient에서 accessToken을 얻는 방법
http://stackoverflow.com/questions/18096934/get-access-token-from-google-plus-android
http://stackoverflow.com/questions/15950054/android-plusclient-implementation-getting-a-token
https://developers.google.com/identity/protocols/OAuth2ForDevices
https://developers.google.com/identity/protocols/OAuth2InstalledApp
https://developers.google.com/android-publisher/authorization
https://developers.google.com/api-client-library/java/google-api-java-client/oauth2
OAuth 2.0 인증 구현 절차
https://developers.google.com/youtube/v3/guides/authentication?hl=ko#server-side-apps
https://github.com/nattachart/itcs208-2-2013-projects/blob/master/code/youtube/src/Auth.java
http://stackoverflow.com/questions/11602334/get-userinfo-from-oauth2-google-contacts-api
http://stackoverflow.com/questions/9084840/google-analytics-authorization-in-java
http://googledevkr.blogspot.kr/2013/05/youtube-api-quicket.html
https://developers.google.com/youtube/v3/code_samples/java?hl=ko#upload_a_video
https://developers.google.com/youtube/v3/libraries?hl=ko
https://developers.google.com/api-client-library/java/apis/youtube/v3
https://developers.google.com/android-publisher/authorization
쓸만한 예제이긴 하지만, 2년 동안 업데이트가 안되어 인증 부분이 변경된 사항이 반영되지 않은 것으로 보인다.
https://github.com/sohnkh/YoutubeUploadAndroidSampleV3