Android Studio || Gdk 'hello Word' || Import Com.google.android.glass.app.card || Cannot Resolve Symbol 'google'
Solution 1:
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.
Solution 2:
The top answer is a bit old. Since the GDK is no longer a sneak peek, use:
compileSdkVersion "Google Inc.:Glass Development Kit Preview:19"Make sure you've downloaded the Glass Development Kit Preview from Tools > SDK Manager, and that you're running the latest version of Android Studio (0.55 and up.)
Solution 3:
Why don´t you use a sample to start your project? New Project -> Other -> Android Sample Project You can use the StopWatch to make that.
If you don´t want, be sure that your manifest has
<uses-sdkandroid:minSdkVersion="15"android:targetSdkVersion="15" />Check if the GDK Sneak Peek is installed.
This message
CannotResolveSymbol'google'Look like a syntax error or a include error in your eclipse.
Check is the Glass Development Kit Sneak Peep is include as our library. Right Click your project -> Properties -> Java Build path -> Libraries Check too is your Project Build Target is correct on Android option.
Post a Comment for "Android Studio || Gdk 'hello Word' || Import Com.google.android.glass.app.card || Cannot Resolve Symbol 'google'"