Reputation: 2656
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
Update
does not do anything. 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
Upvotes: 6
Views: 11195
Reputation: 6209
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.
Upvotes: 0
Reputation: 893
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.
Upvotes: 1
Reputation: 3972
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.
Upvotes: 1
Reputation: 1855
I had the same issue: Failure [INSTALL_FAILED_DUPLICATE_PERMISSION ...
un-installing the app from the device and re-installing the app solved it.
Upvotes: 1