How to update Google Play Services on the emulator in Android Studio

前端 未结 4 773
鱼传尺愫
鱼传尺愫 2020-12-28 09:14

Hi I am trying to run an Android Program I have created that can connect to Firebase with Authentication using email and password but it seems that I cannot even authenticat

4条回答
  •  生来不讨喜
    2020-12-28 09:42

    Try to download and install the latest APK for Play Services as stated in this thread.

    Based from Google documentation,

    If you want to test your app on the emulator, expand the directory for Android 4.2.2 (API 17) or a higher version, select Google APIs, and install it. Then create a new AVD with Google APIs as the platform target.

    Try to navigate to settings--> apps in your emulator and then find Google Play Services. Check the version number and use it in you build.gradle. To update it with the latest version, you can see it in these documentation and SO question.

    Be noted that updates might not reach all users immediately, so your app should verify the version available before attempting to perform API transactions.

提交回复
热议问题