简体   繁体   English

Android Studio V0.8无法创建新的Glass Module,错误为“组件Glass Module的最低SDK级别为19”

[英]Android studio V0.8 cannot create new Glass Module with error “The component Glass Module has a minimum SDK level of 19”

I am working on a phone app and planning to port it to glass with some modifications. 我正在开发手机应用程序,并计划进行一些修改将其移植到玻璃上。 I thought creating a new Glass Module under the parent app project will save me some time and effort, since the libraries modules are already set up, and my phone app's module is always present for me to reference. 我认为在父应用程序项目下创建一个新的Glass Module将节省我的时间和精力,因为已经设置了库模块,并且电话应用程序的模块始终存在,可供我参考。 However when I tries to create a Glass Module from the "New Module" dialogue a red message below says "The component Glass Module has a minimum sdk level of 19." 但是,当我尝试从“新模块”对话框中创建玻璃模块时,下面的红色消息显示“组件玻璃模块的最低sdk级别为19”。 I am unable to carry on the setup. 我无法进行设置。

My project's build.gradle is very simple and does not define a min sdk : 我项目的build.gradle非常简单,没有定义min sdk:

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:0.12.+'
    }
}

allprojects {
    repositories {
        jcenter()
        mavenCentral()
    }
}

Does anyone any idea what is preventing me from creating a new Module under the project? 有谁知道是什么阻止了我在项目下创建新模块?

I have found a walk around: create a new Android Application Module, and under "Module settings" enter "Google Inc.:Glass Development Kit Preview:19" for Compiler sdk version. 我发现了一个解决方法:创建一个新的Android应用程序模块,然后在“模块设置”下为Compiler sdk版本输入“ Google Inc.:Glass Development Kit Preview:19”。 this will import the corresponding GDK for your module. 这将为您的模块导入相应的GDK。 This works however it is still impossible to create Glass Module directly from the New Module Dialogue. 这可行,但是仍然不可能直接从“新模块对话”中创建Glass Module。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 从Android Studio运行UiAutomator API(v0.8) - Run UiAutomator API from Android Studio (v0.8) Android Studio 1.3.1和Google Glass - 创建新项目| 定位Android设备| 玻璃未安装 - Android Studio 1.3.1 and Google Glass — Create New Project | Target Android Devices | Glass Not Installed Google Glass在Android Studio上编译错误 - Google Glass compile error on Android Studio Android Studio Glass App无法解析卡符号? - Android Studio Glass App cannot resolve Card symbol? Google Glass:使用Android Studio的GDK - Google Glass: GDK with Android Studio Android Studio-Gradle-无法使用哈希字符串'Google Inc.:Glass Development Kit Preview:19'找到目标 - Android studio - gradle - failed to find target with hash string 'Google Inc.:Glass Development Kit Preview:19' 使用低于API级别19(4.4)的设备使用android studio 0.8.x录制屏幕吗? - Record screen using android studio 0.8.x from a device below API Level 19(4.4)? 在android sdk管理器中找不到Glass Development Kit - not found Glass Development Kit at android Sdk manager 当我在 Android Studio 中创建一个新项目时,我应该根据项目类型选择哪个 API 级别作为最低 SDK? - When I create a new project in Android Studio, which API level should I choose according to project type as the minimum SDK? 可以通过Android SDK访问GPS for Glass吗? - Can GPS for Glass be accessed through the Android SDK?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM