[android] Google Sign In 준비하기 #1
https://developers.google.com/identity/sign-in/android/start-integrating
-
Google Sign-In 을 사용하기 위해서는 아래와 같은 조건이 필요하다.
단말
Android 2.3 이상 & Google Play Store
개발환경
최신버전의 Android SDK
Android 2.3 이상
Google Play Services 설치 ( sdk manager 통해 )
-
아래 명령을 통해 keystore 의 SHA1 추출
keytool -exportcert -list -v -alias androiddebugkey -keystore ~/.android/debug.keystore
-
위 주소를 통해 프로젝트를 생성하며, 추출한 SHA1 을 등록하고, Configue 파일을 다운받는다.
-
Configue 파일을 프로젝트 app 폴더 밑에 복사
-
project level build.gradle에 아래를 추가한다.
최상단에는
apply plugin: 'com.google.gms.google-services'
dependencies 에는
classpath 'com.google.gms:google-services:3.0.0'
-
app level build.gradle 에 아래를 추가한다.
compile 'com.google.android.gms:play-services-auth:9.2.1'
'프로그래밍 놀이터 > 안드로이드, Java' 카테고리의 다른 글
[android] Google Sign In 서버로 검증하기 #3 (0) | 2018.02.24 |
---|---|
[android] Google Sign In 코드 짜기 #2 (0) | 2018.02.23 |
[android] odex 에 대해 알아보자. (0) | 2018.01.24 |
[android] earphone(headset) plug or unplug intent action (0) | 2018.01.22 |
[android] Build 할 때 MissingTranslation 관련 에러가 난다면.. (0) | 2018.01.21 |
댓글