에뮬레이터에서 Google Play 서비스 업데이트
Google Play에서 이와 같은 많은 질문을했으며 Android 4.2.2 API 17을 사용하고 있습니다.
내 애플, 구글 플레이 서비스 8.1을 필요로 그것은 벌금을 컴파일하고 에뮬레이터에서 실행 때 그 메시지 표시 '당신은 구글 플레이 서비스를 업데이트해야합니다'를 ,
업데이트를 클릭해도 아무 변화가 없습니다.
최신 API 버전을 다운로드하지 않고 Google Play 서비스를 업데이트하려면 어떻게합니까?
2017 년 12 월 18 일 업데이트
API 24의 실제 Android 기기에서와 마찬가지로 에뮬레이터의 Play Store 앱을 통해 Google Play 서비스를 업데이트 할 수 있습니다.
Android Studio v 3.0의 안정적인 업데이트로 추가 된 에뮬레이터의 새로운 기능 확인
Google Play 지원 -Google 제공 : 많은 앱 개발자가 Google Play 서비스를 사용하고 있으며 Android 에뮬레이터 시스템 이미지에서 서비스를 최신 상태로 유지하기가 어려울 수 있습니다. 이 문제를 해결하기 위해 Play 스토어 앱이 포함 된 Android 시스템 이미지 버전을 제공합니다. Google Play 이미지는 Android Nougat (API 24)부터 사용할 수 있습니다 . 이 새로운 에뮬레이터 이미지를 사용하면 실제 Android 기기에서와 마찬가지로 에뮬레이터의 Play 스토어 앱을 통해 Google Play 서비스를 업데이트 할 수 있습니다. 또한 Google Play 스토어에서 엔드 투 엔드 설치, 업데이트 및 구매 흐름을 테스트 할 수 있습니다.
빠른 부팅-빠른 부팅을 사용하면 6 초 이내에 Android 에뮬레이터 세션을 재개 할 수 있습니다
안드로이드 CTS 호환성
성능 향상-최신 버전의 Android 에뮬레이터에서는 메모리를 AVD에 정의 된 최대 RAM 크기로 할당하고 고정하는 대신 필요시 RAM을 할당합니다.
가상 센서
Wi-Fi 지원
GPS 위치 등
또는
이 SDK 빌드 도구 및 Android 에뮬레이터를 최신으로 업데이트하면 이 경고 메시지가 다시 나타나지 않습니다.
설정-> Android SDK-> SDK 도구 (탭)-> Android SDK 빌드 도구
Play 스토어가 설치된 에뮬레이터를 사용하십시오. 플레이 서비스를 업데이트하는 것은 실제 장치 에서처럼 쉽습니다.
Google 이 Android SDK 도구 26.0.0에서 Google Play 스토어 이미지 를 도입 한 이후 에뮬레이터에는 Google Play 스토어 가 설치되어 제공됩니다 .
26.0.3부터
- Google Play 스토어 이미지의 확장 창에 Play Services 버전을 표시하는 새 탭과 Play Services 업데이트를 확인하는 버튼을 추가합니다.
에서 기반 구글 문서 ,
에뮬레이터에서 앱을 테스트하려면 Android 4.2.2 (API 17) 이상의 디렉토리를 펼치고 Google API를 선택한 후 설치하십시오. 그런 다음 Google API를 플랫폼 대상으로 사용하여 새 AVD를 만듭니다.
에뮬레이터에서 설정-> 앱으로 이동 한 다음 Google Play 서비스를 찾습니다. 버전 번호를 확인하고 build.gradle에서 사용하십시오. 최신 버전으로 업데이트하려면이 설명서 및 SO 질문 에서 볼 수 있습니다 .
Running the app on a virtual device with system image, 'Google Play API' instead of 'Google API' will solve your issue smoothly..
Virtual devices Nexus 5x and Nexus 5 supports 'Google Play API' image.
Google Play API comes with Nougat 7.1.1 and O 8.0.
Just follow the below simple steps and make sure your pc is connected to internet.
Create a new virtual device by selecting Create Virtual Device(left-bottom corner) from Android Virtual Devices Manager.
Select the Hardware 'Nexus 5x' or 'Nexus 5'.
Download the system image 'Nougat' with Google Play or 'O' with Google Play. 'O' is the latest Android 8.0 version.
Click on Next and Finish.
Run your app again on the new virtual device and click on the 'Upgrade now ' option that shows along with the warning message.
You will be directed to the Play Store and you can update your Google Play services easily.
See your app runs smoothly!
- Note: If you plan to use APIs from Google Play services, you must use the Google APIs System Image.
You need install Google play image, Android SDK -> SDK platforms --> check show Package details --> install Google play.
the answers on this page eluded me until i found the show package details option
My answer is not to update the Google play service but work around. Get the play service version of the emulator by using the following code
getPackageManager().getPackageInfo("com.google.android.gms", 0 ).versionName);
For example if the value is "9.8.79" then use the nearest lesser version available com.google.android.gms:play-services:9.8.0'
문제가 해결됩니다. https://developers.google.com/android/guides/releases#november_2016_-_v100 에서 출시 내역을 가져옵니다.
나는 같은 문제를 겪고 있었다. SDK 27에서는 에뮬레이터를 사용하지 마십시오. SDK 26은 제대로 작동합니다!
나는 같은 문제에 직면했다. Android 스튜디오를 업데이트하고 API 25 대상을 Android 7.1.1 및 X86으로 사용했으며 모든 것이 잘 작동했습니다. 프로젝트에 Google Play 서비스 및 Firebase를 사용합니다.
참고 URL : https://stackoverflow.com/questions/35476182/updating-google-play-services-in-emulator
'programing tip' 카테고리의 다른 글
Gulp.js 작업, src로 돌아 갑니까? (0) | 2020.07.02 |
---|---|
파이썬 모듈의 argparse 부분에 대한 테스트를 어떻게 작성합니까? (0) | 2020.07.02 |
이미 행에있는 내용을 완료하기 위해 bash 기록 완료를 어떻게 변경합니까? (0) | 2020.07.02 |
HTML (0) | 2020.07.02 |
오류와 예외의 차이점은 무엇입니까? (0) | 2020.07.02 |