Search code examples
androidgoogle-glassgoogle-gdk

Google Glass Voice Recognition breaks in XE 21.3


I own a Google glass device with version XE 21.3. Two days back it got updated from 19.3 to 21.3.

In my previous 19.3 version, I was able to detect any word from within my application using this library that provided the GlassVoice.jar file.

However, when Glass got updated now, the complete app breaks and instead shows an Exception that says java.lang.IllegalStateException: VoiceConfig versiom mistmatch. try pulling GlassVoice.apk

I tried pulling out the .apk and converted to .jar again but the issue isn't resolved.

Can someone help or guide me to a solution?


Solution

  • I update the github repository with the newest GlassVoice.apk. For the next updates the usual route to get this working is (in the project root folder, replace ):

    1. adb pull /system/priv-app/GlassVoice.apk
    2. dex2jar -o lib/libs/GlassVoice-xe.jar GlassVoice.apk
    3. edit lib/build.gradle to use the GlassVoice-xe.jar file
    4. fix all build error in the voice helpers, i.e. fix the stuff that has changed from the last release.