6

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.
Jonas Borggren
  • 2,512
  • 1
  • 20
  • 39

4 Answers4

1

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

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

1

This problem occurs when you change the Android version off your device.

Try to uninstall the application directly in the device and re-install it.

Normaly the problem are solved.

João Marcos
  • 3,763
  • 1
  • 18
  • 14
1

The problem is solved in this thread: INSTALL_FAILED_DUPLICATE_PERMISSION... C2D_MESSAGE

The error is actually due to a duplicate app with the same permission but a different signature. I blogged about a work around here.

Community
  • 1
  • 1
lethargicpanda
  • 803
  • 1
  • 10
  • 18
0

I experienced the same on Nexus 7 with Android 5.0. Please make sure "Unknown sources" is enabled. I.e. you can install apps from sources other than Google Play.

Maksim Dmitriev
  • 5,645
  • 10
  • 66
  • 130