Android Emulator: This app won't run without Google Play services

前端 未结 2 1159
忘了有多久
忘了有多久 2020-12-03 10:35

Since Android 4.2.2 it\'s possible to run Google Services on the Android Emulator. I\'m currently making an Android app and made a test project to see if I can get Google+ s

相关标签:
2条回答
  • 2020-12-03 11:34

    Try using the Goole APIs API level 19 as emulator target instead of normal API level 19.

    0 讨论(0)
  • 2020-12-03 11:39

    Ok, after trying some things it turned out I had one last option not correctly checked, which wasn't mentioned anywhere in the tutorial(s)..

    Instead of Android 4.4.2 as Project Build Target & Emulator Target, I've selected Google APIs 4.4.2. Now I don't get the error of Google Play services anymore.

    I do get a NullPointerException though, but at least I can continue.. ;)

    EDIT: Fixed the NullPointerException and modified the code in my original post. Everything works as it should now and I hope this post helps other people with the same (or other) errors using google play services sign-in using an Android Emulator.

    Solution Error Solution Error Emulator

    0 讨论(0)
提交回复
热议问题