谷歌Android的玻璃工作室摇篮问题 [英] Google Glass Android Studio Gradle issues

查看:205
本文介绍了谷歌Android的玻璃工作室摇篮问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想建立我的第一个谷歌玻璃应用,采用Android工作室0.5.4。但是我得到生成错误:错误:模块TestApplication-TestApplication:平台谷歌Inc.:Glass开发套件先睹为​​快:15'。没有找到

正如你所看到的GDK,和所有必要的库文件的安装。

我已经看过这个已经是几个不同的问题,主要是

其中建议修改 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得到解决,因此,如果您通过更新帮助 - >检查更新...它应该工作。

有一个解决办法,如果你还有问题:


  1. 打开了终端窗口

  2. 运行 gradlew installDebug 你要安装的应用程序(preSS向上召回最后一个命令),每次

我有这个问题与Android工作室0.5.4,但只有两个机器之一。

我Android Studio中开始玻璃应用在一个机和Android Studio构建应用程序没有任何问题,当我从GitHub克隆完全相同的项目另一台机器上的Andr​​oid工作室给了我你看到了同样的错误 - 错误:模块'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

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:

  1. Open up the "Terminal" window
  2. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆