Class not found error for any glass api

女生的网名这么多〃 提交于 2019-12-04 09:09:23

You have to set your project to compile with the Glass GDK.

Make sure you're targeting 15, have the GDK downloaded as per the other answer, and then:

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.

EDIT:

Just to make sure, your manifest should have this line:

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

Make sure you are targeting API 15 and that you installed the glass development Kit. See the Picture:

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!