Google Maps v2 를 띄우려 하는데 별다른 에러는 없는거 같은데
Map 화면이 그냥 하얗게만 나온다.
이렇게..
이것저것 찾다보니 로그를 잘 보라는 얘기가..;;
역시 로그에 있었다.
다음과 같은 로그를 찾을 수 있었다.
E/Google Maps Android API(10578): Authorization failure. Please see https://developers.google.com/maps/documentation/android/start for how to correctly set up the map.
E/Google Maps Android API(10578): Ensure that the following correspond to what is in the API Console: Package Name: com.example.test.google.maps, API Key: AIzaSyDEUmVSU2QYHJuD35ktwFT8tztDcgXxsQw, Certificate Fingerprint: 8C67530F311A6100E7BF18E1D7595226F0B346B1
I/Google Maps Android API(10578): Failed to contact Google servers. Another attempt will be made when connectivity is established.
E/Google Maps Android API(10578): Failed to load map. Error contacting Google servers. This is probably an authentication issue (but could be due to network errors).
E/Google Maps Android API(10578): Ensure that the following correspond to what is in the API Console: Package Name: com.example.test.google.maps, API Key: AIzaSyDEUmVSU2QYHJuD35ktwFT8tztDcgXxsQw, Certificate Fingerprint: 8C67530F311A6100E7BF18E1D7595226F0B346B1
I/Google Maps Android API(10578): Failed to contact Google servers. Another attempt will be made when connectivity is established.
E/Google Maps Android API(10578): Failed to load map. Error contacting Google servers. This is probably an authentication issue (but could be due to network errors).
결국엔 API key가 잘못되었단 말인데..
하긴.. 잘 안되서 프로젝트 다시 만들어 보고 했었으니 패키지명이 달라져서 키가 맞을 수 없었지..
https://code.google.com/apis/console/?noredirect#access
여기서 패키지명을 다시 수정해서 해보니 잘 나왔었다.
댓글
댓글 쓰기