google play services - Android Wear Error ConnectionResult{statusCode=SERVICE_VERSION_UPDATE_REQUIRED, resolution=null} -
i've wanted make easy wearable app , connect through data layer. works fine handheld module (using: s5), wearable (using: moto 360) throw error:
onconnectionfailed: connectionresult{statuscode=service_version_update_required, resolution=null}
the play services @ handheld up-to-date
i've added
compile 'com.google.android.gms:play-services:7.3.0'
to both, handheld, wear build.gradle.
the wearable activity:
@override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_main); final watchviewstub stub = (watchviewstub) findviewbyid(r.id.watch_view_stub); stub.setonlayoutinflatedlistener(new watchviewstub.onlayoutinflatedlistener() { @override public void onlayoutinflated(watchviewstub stub) { mtextview = (textview) stub.findviewbyid(r.id.text); } }); int result = googleplayservicesutil.isgoogleplayservicesavailable(this); log.i(tag,"services available: "+ result); mgoogleapiclient = new googleapiclient.builder(this) .addconnectioncallbacks(new googleapiclient.connectioncallbacks() { @override public void onconnected(bundle connectionhint) { log.d(tag, "onconnected: " + connectionhint); // can use data layer api } @override public void onconnectionsuspended(int cause) { log.d(tag, "onconnectionsuspended: " + cause); } }) .addonconnectionfailedlistener(new googleapiclient.onconnectionfailedlistener() { @override public void onconnectionfailed(connectionresult result) { log.d(tag, "onconnectionfailed: " + result); } }) // request access wearable api .addapi(wearable.api) .build(); } @override protected void onstart() { super.onstart(); log.i(tag, "==onstart==="); mgoogleapiclient.connect(); }
i've done research, couldn't find working solution.
i have similar problem when use google play services on asus zenwatch,
in wearable throw error:
connectionresult{statuscode=service_version_update_required, resolution=null
google play services out of date. requires 7327000 found 6774534
i found wearable , handheld google play services may not syncing, don't know why.
so, check wearable google play services version
settings -> -> software version
and resync apps
launch android wear app -> click gear icon -> select device -> resync apps
wait 3-5 minute , check wearable google play services version.
when sync complete, maybe can work it.
hope understand broken english.
| that solved problem, thanks. – julius may 12 '15 @ 11:14 | ||
| hmm google play services isn't syncing me. on phone version 8.1.15 , on wear emulator 7.3.27. – user2968401 oct 12 '15 @ 6:07 | ||
| same issue above – kotios nov 25 '15 @ 8:12 |
if selected answer doesn't work ppl, try this. latest google play services wear dl latest system image ( | ||||
|
i solved same case downgrading library versions in gradle scripts. the phone project dependencies the watch project dependencies are the phone stopped demanding upgrade after have lowered version 9.2.0 9.0.0 in both cases. | |||
|
i had same issue. i able fix updating android play services same version on both android mobile , android wear devices. you can check android play services version on mobile device going next, go android wear device , check android play services version. can done going if these versions not same, need upgrade lower version same version higher one. first, go http://www.apkmirror.com/apk/google-inc/google-play-services/ download android play services apk: make sure same version other device - link contains downloads , information on finding correct apk device. you can install apk android mobile device using command. -r (reinstall) needed if there current version of google play services installed on device. you can install apk directly android wear device using bluetooth, if device needs updated. requires bit more work. first, make sure wear , mobile devices paired. navigate "android wear" application on mobile device, in upper left should see device status connected. click on gear , scroll down section title "debugging on bluetooth". make sure settings this: next, run these 2 commands finally, run command you should see 2 devices connected. if have looks this you need enable debugging mode on android wear device. can done going go make sure turn on both adb debugging , debug on bluetooth finally, have both of devices attached, can use command install apk android wear device quick note, take 10 minutes or , nothing appear happening. have patience , wait. response looks this: once both devices have same google play service versions, should go. happy coding! | |||
|
in case getting error when compiling against upgrading 10.0.1, fixed it. | |||
|
i had issue when trying test on android wear emulator running 7.1.1 w play services 10.2.89. had build.gradle dependency set 11.0.1 in wear module. easiest quickest solution try set play services version in build.gradle equal or less have on wear device or emulator in case set : and worked. | |||
|