问题描述
我配置 eclipse ADT strong>成功开发玻璃.
然后,我创建一个示例项目,并尝试开发google glass card或timelineitem.
I configure eclipse ADT for glass development successfully.
Then I create a sample project and try to develop google glass card or timelineitem.
当我编译并运行时, android tuntime
java.lang.NoClassDefFoundError: com.google.android.glass.app.Card
此错误也针对
com.google.android.glass.timeline.TimelineManager
错误日志我该怎么解决?
推荐答案
您必须将项目设置为使用Glass GDK进行编译.
You have to set your project to compile with the Glass GDK.
请确保您定位到15,并按照其他答案下载GDK,然后:
Make sure you're targeting 15, have the GDK downloaded as per the other answer, and then:
在屏幕左侧选择您的项目,打开项目属性(alt输入或右键单击->属性),转到Android选项卡,向下滚动到Android 4.0.3,然后在该部分中玻璃开发套件潜行峰.选中旁边的框,单击确定,一切应该开始工作.
Select your project on the left side of the screen, open project poperties (alt-enter, or right click -> properties), go to Android tab, scroll down to Android 4.0.3, and in that section will be the Glass Development Kit Sneak Peak. Check the box next to this, hit ok and everything should start working.
只需确保您的清单中应包含以下行:
Just to make sure, your manifest should have this line:
<uses-sdk
android:minSdkVersion="15"
android:targetSdkVersion="15" />
这篇关于未找到任何玻璃API的类错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!