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

不想你离开。 提交于 2019-12-20 04:52:55

问题


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?


回答1:


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)




回答2:


Change this statement

compile 'com.google.android.gms:play-services-wearable:8.3.0'

to

compile 'com.google.android.gms:play-services-wearable:7.8.99'



回答3:


My solution was to upgrade Android Wear Smart Watch on my emulator

First, I noticed my Google Play services on the emulator was out of date.

Go to play store, and click the top menu:

Find Android Wear Smart Watch, and update it.

After that, my Google play services is up-to-date.




回答4:


Google on your handset device "Download Google play services" Will open your app store and then click on update. That should do it.



来源:https://stackoverflow.com/questions/33597539/w-googleplayservicesutil-google-play-services-out-of-date-requires-8298000-but

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!