Class not found error for any glass api

I set up eclipse ADT for successful glass development.
Then I create a sample project and try to develop a stack or a time map.

when i compile and run, there was an error from android runtime

java.lang.NoClassDefFoundError: com.google.android.glass.app.Card

this error also occurs for

com.google.android.glass.timeline.TimelineManager   

Error log enter image description here How can I solve it?

+4
source share
2 answers

You must configure the project to compile with Glass GDK.

Make sure you aim at 15, load the GDK according to another answer, and then:

, (alt-enter right click → properties), Android, Android 4.0.3, Sneak Peak. , , .

:

, :

    <uses-sdk
    android:minSdkVersion="15"
    android:targetSdkVersion="15" />
+2

, API 15 . . :

enter image description here

0

All Articles