【发布时间】:2014-04-14 16:04:27
【问题描述】:
我正在尝试使用 Android Studio 0.5.4 构建我的第一个 Google Glass 应用。但我得到一个构建错误:Error:Module 'TestApplication-TestApplication': platform 'Google Inc.:Glass Development Kit Sneak Peek:15' not found.
如您所见,GDK 和所有必要的库文件均已安装。
我已经看过几个不同的问题,主要是
- 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
建议把build.gradle中的compileSdkVersion改成这个
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'])
}
【问题讨论】:
-
很遗憾,这可能是 Android Studio 中的一个错误。我正在经历与更新到 0.5.4 相同的事情,并且从命令行调用 gradle 能够正常构建。
标签: android android-studio google-glass google-gdk