谷歌眼镜更新到奇巧,但新的方法没有显示在Eclipse中吗? [英] Google Glass updated to KitKat, but new methods aren't showing up in Eclipse?

查看:169
本文介绍了谷歌眼镜更新到奇巧,但新的方法没有显示在Eclipse中吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的谷歌眼镜今天更新了自己奇巧,我想我所经历和更新Eclipse的成功为好,但Eclipse是投掷由更新引入GDK新方法的错误。例如,更新的部分是

My Google Glass updated itself to KitKat today, and I thought I have gone through and updated Eclipse successfully as well, but Eclipse is throwing errors on the new methods introduced into the GDK by the update. For instance, part of the update was

的setText()预计一java.lang.CharSequence中的

setText() expects a java.lang.CharSequence

于是,我改变了我的code从

So, I changed my code from

card.setText(some_String);

card.setText(some_String);

card.setText(some_CharSequence);

card.setText(some_CharSequence);

不过,我这样做的时候,月食抛出一个错误,指出

however, when I do this, eclipse throws an error, stating that

在类型卡的方法的setText(字符串)不适用于参数(CharSequence中)

The method setText(String) in the type Card is not applicable for the arguments (CharSequence)

就是了我设置文本​​为一个字符串,它不会让我在玻璃上运行应用程序,直到我改回来。但是,一旦我改回来,并尝试在玻璃上运行,应用程序的力量,只要它试图设置文本退出。在LogCat中的错误可以追溯到这一行了。

it wants me to set text as a string, and it won't let me run the application on glass until I change it back. However, once I change it back and try to run it on Glass, the application force quits as soon as it tries to set the text. The error in LogCat traces back to this line too.

java.lang.NoSuchMethodError:com.google.android.glass.app.Cart.setText

java.lang.NoSuchMethodError: com.google.android.glass.app.Cart.setText

我可以为GDK的文档中看到的不再是有一个为接受一个字符串作为输入一个setText方法的任何支持。

I can see in the documentation for the GDK there's no longer any support for a setText method that takes a string as an input.

事情到目前为止,我已经做:更新了Android开发者工具包的使用发现这里的步骤22.6.2

Things I have done so far: Updated the Android Developer Toolkit to 22.6.2 using the steps found here

<一个href=\"http://stackoverflow.com/questions/22524789/error-this-android-sdk-requires-android-developer-toolkit-version-22-6-1-or-abo\">Error:这个Android SDK中需要以上

在SDK管理器中找到了玻璃和奇巧安装所有更新

Installed all the updates for Glass and KitKat found in the SDK Manager

检查在Eclipse更新和安装任何它发现

Checked for updates in Eclipse and installed whatever it found

更新targetSDK和minSDK在我的应用程序清单以19

updated the targetSDK and minSDK in my app manifest to 19.

不知道从这里做。

推荐答案

我知道这是很基本的,但你重新启动Eclipse ADT安装新的包后?
尝试清洁您的项目,以确保它使用了正确的GDK。你也可以尝试去到项目属性 - > Android和确保构建目标是API 19

I know it's really basic, but did you restart Eclipse ADT after installing the new packages? Try cleaning your project to make sure it is using the correct GDK. You may also try going to the project Properties -> Android and make sure the build target is API 19.

这篇关于谷歌眼镜更新到奇巧,但新的方法没有显示在Eclipse中吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆