Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: ADB update Google Play Services 'Failure'

Tags:

android

adb

Trying to follow this Google+ Login tutorial.


Start application and I get this error

You need to update Google Play Services to use this application

  • Pressing Update does not do anything.
  • Ignoring this dialog and pressing Login crashes the application.

Using the terminal in Windows 8 to update the Play Services on my emulator,

adb install com.android.vending-20140218.apk ........
Failure [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 .......
Failure [INSTALL_FAILED_DUPLICATE_PERMISSION perm=com.android.vending.CHECK_LICENSE pkg=com.android.vending]


I tried uninstalling both using adb uninstall and adb install -r but it just responds with

Failure


Emulator

  • Nexus 5 with Android 5.0
  • targetSdk Android 5.0
  • minSdk Android 5.0
  • Buildtools 19.1.0.
like image 982
Jonas Borggren Avatar asked Jul 15 '14 11:07

Jonas Borggren


1 Answers

I had the same issue: Failure [INSTALL_FAILED_DUPLICATE_PERMISSION ...

un-installing the app from the device and re-installing the app solved it.

like image 94
Opster Elasticsearch Expert Avatar answered Oct 04 '22 08:10

Opster Elasticsearch Expert