Search code examples
adtgoogle-glassgoogle-gdk

NoSuchMethod Exception for createLiveCard


I am learning how to use the GDK and a nice explorer shared their HelloWorld project with me (https://code.google.com/p/hello-world-google-glass/source/checkout)

Unfortunately when I try to run the code I get the error:

java.lang.NoSuchMethodError: com.google.android.glass.timeline.TimelineManager.createLiveCard

I have been searching for solutions, but the closest I could find to my problem was addressed in this post: Google glass sample projects are crashing

As the accepted answer suggested, I went into the SDK manager and updated my whole API 15, including the GDK sneak peak. My GDK shows Revision 2. Still doesn't work.

Even weirder, all of the sample apps Google included work just fine. Any advice?

EDIT: The sample apps DO NOT WORK just fine, I just realized when I manually launch the apps instead of voice command, I am actually given 2 choices of each app. One works, one gives the exact same error as described above. I imagine the working one came from MyGlass and the other is the one I loaded.

EDIT #2 I looked on MyGlass and it turns out my Glass is running XE11 instead of 12. I can't find any instructions on how to update it to XE12. Ideas?


Solution

  • GDK incompatible changes were introduced in the change between XE11 and XE12, so this makes some sense.

    It is a little odd that you're on XE11 still, however. There is no way to force the upgrade, but it should happen on its own when charging and on WiFi. You may want to do a reset (hold the power button down for 15 seconds - this is just a forced power off instead of sleep and won't delete anything) and see if that resolves anything or a hard reset (which will delete everything) from the settings menu. You may also want to contact a Glass Guide for further assistance in getting the upgrade.