GoogleService 초기화가 안돼요.
조회수 2616회
제 애플리케이션에서 구글 맵스 지도를 쓰려고하는데요. 키도 생성했고 매니페스트에서 퍼미션도 추가해주었는데도 앱을 실행하면 디버거에서 이런 메세지가 나와요:
GoogleService failed to initialize, status: 10, Missing an expected resource: 'R.string.google_app_id' for initializing Google services. Possible causes are missing google-services.json or com.google.gms.google-services gradle plugin.
저는 뭐가 문제인지 모르겠어요. 사용하는데 문제도 없구요. 제 gradle 파일에도 이렇게 해줬는데
compile 'com.google.android.gms:play-services:8.4.0'
뭐가 문제일까요? 그리고 어떻게 고치면 될까요?
1 답변
-
아래의 링크로가서 생성된 파일을 구성파일에 넣으셔야돼요. https://developers.google.com/mobile/add?platform=android&cntapi=signin&cntapp=Default%20Demo%20App&cntpkg=com.google.samples.quickstart.signin&cnturl=https:%2F%2Fdevelopers.google.com%2Fidentity%2Fsign-in%2Fandroid%2Fstart%3Fconfigured%3Dtrue&cntlbl=Continue%20with%20Try%20Sign-In
그리고 밑의 링크로 가서 시키는데로 하시구요. https://developers.google.com/identity/sign-in/android/start?hl=en
3번째로는
다운로드된 google-services.json 파일을 안드로이드의 app/ 이나 mobile/ 디렉토리에 복사해주세요.
댓글 입력