谷歌Android的玻璃工作室摇篮问题 [英] Google Glass Android Studio Gradle issues
问题描述
我想建立我的第一个谷歌玻璃应用,采用Android工作室0.5.4。但是我得到生成错误:错误:模块TestApplication-TestApplication:平台谷歌Inc.:Glass开发套件先睹为快:15'。没有找到
正如你所看到的GDK,和所有必要的库文件的安装。
我已经看过这个已经是几个不同的问题,主要是
- 谷歌眼镜:GDK与Android工作室
- Android工作室|| GDK'你好字'||进口com.google.android.glass.app.Card ||不能解析符号'谷歌'
- Error:Module 应用程序名称:平台Android的15'未找到
其中建议修改 compileSdkVersion
在的build.gradle
这个
应用插件:'机器人'安卓{
compileSdkVersion谷歌Inc.:Glass开发套件先睹为快:15
buildToolsVersion17.0.0 defaultConfig {
15的minSdkVersion
targetSdkVersion 15
版本code 1
的versionName1.0
}
buildTypes {
发布 {
runProguard假
proguardFiles getDefaultProguardFile('proguard的-android.txt'),'proguard的-rules.txt
}
}
}依赖{
编译文件树(导演:'库',包括:['的* .jar'])
}
这个问题似乎在Android的工作室0.5.5得到解决,因此,如果您通过更新帮助 - >检查更新...它应该工作。
有一个解决办法,如果你还有问题:
- 打开了终端窗口
- 运行
gradlew installDebug
你要安装的应用程序(preSS向上召回最后一个命令),每次
我有这个问题与Android工作室0.5.4,但只有两个机器之一。
我Android Studio中开始玻璃应用在一个机和Android Studio构建应用程序没有任何问题,当我从GitHub克隆完全相同的项目另一台机器上的Android工作室给了我你看到了同样的错误 - 错误:模块'onebusaway,Android的:平台谷歌Inc.:Glass开发套件先睹为快:15'未找到
不过,在命令行gradle这个仍然能正常工作
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'])
}
This issue seems to be resolved in Android Studio 0.5.5, so if you update via "Help->Check for Update..." it should work.
A workaround, if you still have problems:
- Open up the "Terminal" window
- Run
gradlew installDebug
each time you want to install the app (press "up" to recall the last command)
I had this issue with Android Studio 0.5.4, but on only one of two machines.
I started a Glass app in Android Studio on one machine and Android Studio built the app without any problems, and when I cloned the exact same project from Github on another machine Android Studio gave me the same error you're seeing - Error:Module 'onebusaway-android': platform 'Google Inc.:Glass Development Kit Sneak Peek:15' not found.
But, gradle from the command line still works fine.
这篇关于谷歌Android的玻璃工作室摇篮问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!