简体   繁体   中英

error: Please update your Google Play service in Android emulator (version should be 10.2.0)

I have downloaded a sample project. It requires 10.2.0 Play service, so I can't change the compile version in the build.gradle to lower version.

I have followed the other SO questions:

Android Studio with Google Play Services How to update Google Play Services for Android Studio 2.2 emulators? updating Google play services in Emulator

I have also downloaded the latest Google Play service, install the necessary SDKs, clean build project, sync Gradle, use API 24 and API25 for my emulators.

None of it works, my Play service is still using 10.0.8. Below are the screenshots of my Android Studio settings.

在此处输入图片说明

在此处输入图片说明

在此处输入图片说明

在此处输入图片说明

在此处输入图片说明

Delete the emulator, and in the SDK manager, also delete the SDK platform on which that emulator was built.

Then, re-download that SDK platform and re-build your emulator.

Why?

If there have been updates to Google Play Services since you've downloaded said SDK platform and built that emulator, the legacy version of Google Play Services is probably still in that SDK platform's build.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM