Android Question Wearable Demo crashing

nibbo

Active Member
Licensed User
Longtime User
Hi All
Have tried to run the wearable demo kindly provided by Barry here: https://www.b4x.com/android/forum/threads/wearable-datalayer.49968/page-4#post-340262

However I cannot get it to run. Crashed several times due to not having the latest support jar's etc... having fixed all of them I now get the following error which has stumped me a bit:
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
java.lang.IncompatibleClassChangeError: The method 'void com.google.android.gms.common.api.GoogleApiClient.connect()' was expected to be of type interface but instead was found to be of type virtual (declaration of 'java.lang.reflect.ArtMethod' appears in /system/framework/core-libart.jar)
at barxdroid.wearabledatalayer.WearableDataLayer.Connect(WearableDataLayer.java:94)
at canalrun.wear.crwex.main._activity_resume(main.java:406)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:702)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:336)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:246)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:134)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:153)
at canalrun.wear.crwex.main.afterFirstLayout(main.java:108)
at canalrun.wear.crwex.main.access$000(main.java:17)
at canalrun.wear.crwex.main$WaitForLayout.run(main.java:80)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:5832)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
** Activity (main) Pause, UserClosed = true **

Grateful for any help... Thanks
 
Last edited:
Top