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.

enter image description here

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.

share|improve answer
    
that solved problem, thanks. – julius may 12 '15 @ 11:14
2  
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 (api 22 of post) emulator. using api 21 previously.

share|improve answer

i solved same case downgrading library versions in gradle scripts.

the phone project dependencies

compile 'com.google.android.gms:play-services:9.2.0' 

the watch project dependencies are

compile 'com.google.android.support:wearable:2.0.0-alpha1' compile 'com.google.android.gms:play-services-wearable:9.2.0' 

the phone stopped demanding upgrade after have lowered version 9.2.0 9.0.0 in both cases.

share|improve answer

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

 settings -> apps -> google play services -- version should listed near top. 

next, go android wear device , check android play services version. can done going

settings -> -> click on versions -- version should listed 

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.

adb install -r <path apk> 

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:

 **debugging on bluetooth**  host: disconnected  target: connected 

next, run these 2 commands

adb forward tcp:4444 localabstract:/adb-hub adb connect localhost:4444 

finally, run command

adb devices 

you should see 2 devices connected.

**list of devices attached** localhost:4444 device "device name" device 

if have looks this

**list of devices attached** localhost:4444 unauthorized "device name" device  

you need enable debugging mode on android wear device. can done going

settings->about , pressing build number tab 7 times.  

go

settings->developer options, should have appeared.  

make sure turn on both adb debugging , debug on bluetooth

finally, have both of devices attached, can use command install apk android wear device

adb -e install -r <path apk> 

quick note, take 10 minutes or , nothing appear happening. have patience , wait. response looks this:

76 kb/s (18622942 bytes in 238.161s) pkg: /data/local/tmp/com.google.android.gms_9.2.56_(534-   124593566)-9256534_minapi20(armeabi-v7a)(240dpi)_apkmirror.com.apk success 

once both devices have same google play service versions, should go. happy coding!

share|improve answer

in case getting error when compiling against

compile 'com.google.android.gms:play-services:9.8.0" 

upgrading 10.0.1, fixed it.

share|improve answer

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 :

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

and worked.

share|improve answer

your answer

 
discard

posting answer, agree privacy policy , terms of service.

not answer you're looking for? browse other questions tagged or ask own question.

Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -