[Android] 에뮬레이터 위치 설정이 안 되는 이슈

쿠키몬스터·2023년 5월 31일
1

Android

목록 보기
1/1
post-thumbnail

원래는 에뮬레이터의 설정에서 위치를 설정하면 에뮬레이터의 위치가 업데이트 되었는데, 어느 순간부터 업데이트 되지 않았다.

I was unable to get a GPS fix on the emulator when emulator was running Android image without Google APIs. As soon as I changed the image to contain Google APIs all of the here mentioned ways to get a GPS fix worked.
Make sure you select an image with Google APIs when creating AVD.

StackOverflow에서 이런 댓글을 발견하고 Android Studio의 Android SDK 설정으로 이동해보니 Google APIs Intel x86_64 Atom System Image의 status가 Update Available이었다. 해당 이미지를 업데이트하고 에뮬레이터를 다시 실행하니 위치가 설정한대로 변경되었다.

참고 문서

Google APIs Intel x86_64 Atom System Image가 Installed 상태여도 설정한 위치를 가져오지 못한다면, 구글 Maps 앱을 실행해본다. 구글 Maps에서 설정한 위치로 현재 위치가 설정된 것을 확인한 후 앱으로 돌아오면 현재 위치가 설정한 위치로 잘 나타난다.

profile
React Native 개발자입니당

0개의 댓글