I am trying to build my first Google Glass app, using Android Studio 0.5.4. But am getting a build error: Error:Module 'TestApplication-TestApplication': platform 'Google Inc.:Glass Development Kit Sneak Peek:15' not found.
As you can see the GDK, and all necessary library files are installed.
I have looked at a few different questions about this already, primarily
- Google Glass: GDK with Android Studio
- Android Studio || GDK 'hello word' || import com.google.android.glass.app.Card || Cannot Resolve Symbol 'google'
- Error:Module 'App name': platform 'android-15' not found
Which recommends to change compileSdkVersion
in the build.gradle
to this
apply plugin: 'android'
android {
compileSdkVersion "Google Inc.:Glass Development Kit Sneak Peek:15"
buildToolsVersion "17.0.0"
defaultConfig {
minSdkVersion 15
targetSdkVersion 15
versionCode 1
versionName "1.0"
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
}