Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio || GDK 'hello word' || import com.google.android.glass.app.Card || Cannot Resolve Symbol 'google'

What I am trying to do with my google glass is pretty simple: create/display a hello world card for google glass

issue is::

when i add this:

import com.google.android.glass.app.Card

I get This:

Cannot Resolve Symbol 'google'

I did this:

Minimum and Target SDK Versions: 15 (There is only one Glass version, so minimum and target SDK are the same.) Compile with: Glass Development Kit Sneak Peek

and i made a change to the gradel.build[compile sdk version...it was 15/changed to what is below]

android {
    compileSdkVersion "Google Inc.:Glass Development Kit Sneak Peek:15"
    buildToolsVersion "19.0.0"

    defaultConfig {
        minSdkVersion 15
        targetSdkVersion 15
    }
}

I feel like I'm missing something simple/a set up issue/not sure what it is.

got any suggestions?

like image 747
JoeGlow Avatar asked Dec 20 '13 02:12

JoeGlow


1 Answers

It looks like you have things set up correctly, but Android Studio is still under development, and can still be a bit glitchy when it comes to libraries and add-ons. Here are some troubleshooting steps that may help:

  • Re-import your project
  • Under module settings -> Project -> Project SDK -> Edit..., make sure that the Build Target is "Glass Development Kit Sneak Peek"
  • And if all else fails, you can add gdk.jar, found in sdk/add-ons/addon-google_gdk-google-15/libs, to your classpath by adding it as an external library.
like image 145
mimming Avatar answered Nov 14 '22 21:11

mimming