user3105453 user3105453 - 22 days ago 9
Android Question

W/GooglePlayServicesUtil: Google Play services out of date. Requires 8298000 but found 8107534

As many other questions here on SO, I encounter a similar error message. Unlike other questions, this is regarding a hardware debugged device.

My gradle wear-build file looks like this:

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.google.android.support:wearable:1.2.0'
compile 'com.google.android.gms:play-services-wearable:8.3.0'
compile 'com.android.support:appcompat-v7:23.1.0'
}


Debuggin the app within the emulator works fine but as soon as I release the app and install it on my wearable, the connection between mobile and wear won't work. Debugging the wear over bluetooth (which is anything else but fast), shows this tiny line of debug information:

W/GooglePlayServicesUtil: Google Play services out of date. Requires 8298000 but found 8107534


I thought the gradle dependencies would pack the wearable-services together to the shipped apk (as there stands 'compile'), isn't that correct?

How can I bring the hardware watch to work?

Answer

Google Play Services is not going to be bundled with your app so what you are seeing is that your watch is using version 8.1 of the Play Services (which is installed on your watch) and you compiled your app with a higher version and that is not going to work; the version installed on your watch should always be bigger than or equal to the version you compiled your app with (same is true for your phone)