我试着按照这篇Google+登录教程操作。
启动应用程序时,我遇到了以下错误:
您需要更新Google Play服务才能使用此应用程序
- 点击“更新”没有任何效果。
- 忽略此对话框并点击“登录”会导致应用程序崩溃。
在Windows 8的终端中,我尝试更新模拟器上的Play Services:
adb install com.android.vending-20140218.apk ........
失败 [INSTALL_FAILED_DUPLICATE_PERMISSION perm=com.google.android.gms.permission.ACTIVITY_RECOGNITION pkg=com.google.android.gms]
adb install com.google.android.gms-20140218.apk .......
失败 [INSTALL_FAILED_DUPLICATE_PERMISSION perm=com.android.vending.CHECK_LICENSE pkg=com.android.vending]
我尝试使用adb uninstall
和adb install -r
卸载两者,但只回应了:
失败
模拟器
- Nexus 5,Android 5.0
- targetSdk为Android 5.0
- minSdk为Android 5.0
- Buildtools为19.1.0。