IDE Imports Part 7 - Legacy GDK With Android Studio

IDE Imports Part 7 - Legacy GDK with Android Studio

This is the seventh of a series of posts discussing how to get Google Glass Mirror (Java) and GDK projects set up in various IDEs.

One of the most common questions that I get from people during workshops is how to get set up either the Mirror quick start, or the GDK project into Eclipse, Android Studio or IntelliJ.

This post will cover importing a Legacy GDK project into Android Studio.

0. Clone from GitHub

See previous post.

1. Import Project

2. Hit ‘Next’ a few times

Until the project is imported.

The project will automatically be converted into a Gradle project.

3. Add compileSdkVersion to build.gradle

The correct value is:

compileSdkVersion "Google Inc.:Glass Development Kit Preview:19"

4. Fix the AndroidManifest.xml

Need to have one Activity that is considered the launch Activity, otherwise IntelliJ (Android Studio) won’t let you run.

5. Finished!

You’re all done!