所以我正在尝试学习为Glass开发,并且今天正在阅读快速入门指南。尝试运行所有示例应用程序,他们都试图打开它们而崩溃。带着警告标志的图片说“秒表已停止点击继续”。我尝试重新导入重新启动玻璃的项目并没有任何效果。有任何想法吗?此外,我的玻璃最初没有被eclipse识别,并遵循本指南Google Glass ADB devices doesn't find. OMAP4430 driver not installed (can't find it!)来识别它。不知道这与它有什么关系,但我想应该让大家都知道。
这是秒表崩溃的logcat
12-21 16:59:46.109: D/AndroidRuntime(1308): Shutting down VM
12-21 16:59:46.109: W/dalvikvm(1308): threadid=1: thread exiting with uncaught exception (group=0x40db71f8)
12-21 16:59:46.109: E/AndroidRuntime(1308): FATAL EXCEPTION: main
12-21 16:59:46.109: E/AndroidRuntime(1308): java.lang.NoSuchMethodError: com.google.android.glass.timeline.TimelineManager.createLiveCard
12-21 16:59:46.109: E/AndroidRuntime(1308): at com.google.android.glass.sample.stopwatch.StopwatchService.onStartCommand(StopwatchService.java:57)
12-21 16:59:46.109: E/AndroidRuntime(1308): at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2359)
12-21 16:59:46.109: E/AndroidRuntime(1308): at android.app.ActivityThread.access$1900(ActivityThread.java:123)
12-21 16:59:46.109: E/AndroidRuntime(1308): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1210)
12-21 16:59:46.109: E/AndroidRuntime(1308): at android.os.Handler.dispatchMessage(Handler.java:99)
12-21 16:59:46.109: E/AndroidRuntime(1308): at android.os.Looper.loop(Looper.java:137)
12-21 16:59:46.109: E/AndroidRuntime(1308): at android.app.ActivityThread.main(ActivityThread.java:4424)
12-21 16:59:46.109: E/AndroidRuntime(1308): at java.lang.reflect.Method.invokeNative(Native Method)
12-21 16:59:46.109: E/AndroidRuntime(1308): at java.lang.reflect.Method.invoke(Method.java:511)
12-21 16:59:46.109: E/AndroidRuntime(1308): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
12-21 16:59:46.109: E/AndroidRuntime(1308): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
12-21 16:59:46.109: E/AndroidRuntime(1308): at dalvik.system.NativeStart.main(Native Method)
答案 0 :(得分:4)
看起来您正在编译GDE的XE11版本,但在使用XE12的设备上运行。确保您已使用Android SDK Manager将GDK插件更新到最新版本。